Skip to content

Commit

Permalink
now?
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Oct 2, 2021
1 parent aeefcd5 commit 49af650
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,24 @@ jobs:
name: Node v${{ matrix.node }} test
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 6.6.2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- run: pnpm i
- run: pnpm run build
- run: pnpm test
- uses: jaid/[email protected]
- run: npm run build
- run: npm test

publish-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 6.6.2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'pnpm'
registry-url: https://registry.npmjs.org/
- run: pnpm i
- run: pnpm run build
- run: pnpm publish
- uses: jaid/[email protected]
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
10 changes: 3 additions & 7 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ jobs:
name: Node v${{ matrix.node }} test
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 6.6.2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- run: pnpm i
- run: pnpm run build
- run: pnpm test
- uses: jaid/[email protected]
- run: npm run build
- run: npm test

0 comments on commit 49af650

Please sign in to comment.