Skip to content

Commit

Permalink
ci: refined publish pr snapshots workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alecdwm committed Jan 16, 2023
1 parent f6c9f39 commit 8dfec82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-pr-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ name: Publish PR Snapshot

on:
pull_request:
branches: [dev]
types: [opened, synchronize]

jobs:
publish:
name: "Publish PR Snapshot"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: https://registry.npmjs.org

node-version: 14
cache: yarn
- run: yarn --immutable
- run: yarn plugin import workspace-tools
- run: yarn changeset version --snapshot pr${{ github.event.pull_request.number }}.$(git rev-parse --short HEAD)
- run: yarn build:packages:prod
- run: yarn plugin import workspace-tools
- run: yarn workspaces foreach --verbose --no-private npm publish --tolerate-republish --tag pr${{ github.event.pull_request.number }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 8dfec82

Please sign in to comment.