Skip to content

Commit

Permalink
ci: do install after setting snapshot version
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Apr 23, 2022
1 parent 9d2c294 commit 87a3ed8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ jobs:
node-version: "16.x"
cache: yarn

- run: yarn install --immutable

- if: ${{ fromJSON(env.IS_SNAPSHOT) }}
run: yarn workspaces foreach version 0.0.0-snapshot.$(git rev-parse --short HEAD)

- run: yarn install --immutable
- run: yarn build
- run: yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }}
- run: yarn workspaces foreach npm publish --tolerate-republish --access public ${{ fromJSON(env.IS_SNAPSHOT) && '--tag snapshot' || '' }}

0 comments on commit 87a3ed8

Please sign in to comment.