Skip to content

Commit

Permalink
ci: ensure canary pipeline can determine correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Sep 22, 2023
1 parent 85b14d2 commit c4c1a76
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish canary release
on:
push:
branches:
- "main"
- "fix-canary-releases"

jobs:
tag-and-publish-to-npm:
Expand All @@ -11,7 +11,9 @@ jobs:
# Don't run on regular releases
if: "!startsWith(github.event.head_commit.message, 'release: ')"
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v1
Expand All @@ -25,9 +27,9 @@ jobs:
- name: Run release script
run: yarn release:canary

- name: Publish all packages
run: ./scripts/publish.sh canary
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Publish all packages
# run: ./scripts/publish.sh canary
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

timeout-minutes: 10

0 comments on commit c4c1a76

Please sign in to comment.