Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 5, 2023
1 parent 34f05f7 commit 5e98ff1
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ env:

jobs:
build-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'

- run: npm install
- run: npm install --workspaces
Expand Down Expand Up @@ -44,18 +45,20 @@ jobs:
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com

- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/core/package.json

- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/hook/package.json
- run: npm publish --access public
continue-on-error: true
working-directory: ./packages/hook
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: npm publish --access public
continue-on-error: true
working-directory: ./packages/core
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

release:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: build-deploy
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 5e98ff1

Please sign in to comment.