Skip to content

Commit

Permalink
switch workflow to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
modbender committed Dec 28, 2024
1 parent 573e224 commit fa921b0
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/ltpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,35 @@ jobs:
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
registry-url: 'https://registry.npmjs.org'
cache: "pnpm"
cache: "yarn"

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: yarn install --frozen-lockfile

- name: Run linter
run: pnpm lint
run: yarn lint

- name: Run prepare
run: pnpm dev:prepare
run: yarn dev:prepare

- name: Run tests
run: pnpm test
run: yarn test

- name: Run prepack
run: pnpm prepack
run: yarn prepack

- name: Publish to npm
shell: bash
run: pnpm publish --access public --no-git-checks
run: yarn publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Run github release
run: npx --yes changelogithub@latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit fa921b0

Please sign in to comment.