Skip to content

Commit

Permalink
Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
camilaffonseca authored Sep 8, 2022
1 parent d867d57 commit 9113a44
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,27 @@ on:

jobs:
build:
runs-on: node:17
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 17
- run: npm install --global yarn
- run: yarn
- run: yarn type:check
- run: NODE_ENV='production' yarn build:dist

publish-npm:
needs: build
runs-on: node:17
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 17
registry-url: https://registry.npmjs.org/
- run: npm install --global yarn
- run: yarn publish --no-git-tag-version
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 9113a44

Please sign in to comment.