Skip to content

Commit

Permalink
replace npm with yarn in publish
Browse files Browse the repository at this point in the history
  • Loading branch information
IamLizu committed Jun 3, 2024
1 parent 5381c24 commit 9075efe
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,37 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test --verbose --coverage

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

- name: Run tests
run: yarn test --verbose --coverage

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish

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

- name: Publish package
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 9075efe

Please sign in to comment.