Skip to content

Commit

Permalink
Fix canary-release workflow (#184)
Browse files Browse the repository at this point in the history
* chore: fix canary release workflow

* fix: change correct file

* chore: add checkout to branch

* chore: fix checkout
  • Loading branch information
felipecadavid authored Jan 29, 2024
1 parent 58a97de commit 365604c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
token: ${{ secrets.PROPELDATA_CI_TOKEN }}
# NOTE(mroberts): https://github.com/actions/checkout/issues/217
fetch-depth: '0'
ref: ${{ github.event.inputs.branch }}
- uses: actions/checkout@v3
with:
repository: propeldata/actions
Expand Down Expand Up @@ -53,9 +54,12 @@ jobs:

# Release
- name: Prerelease Version and Publish
id: changesets
run: |
yarn config set -H 'npmAuthToken' "${{secrets.NPM_TOKEN}}"
git config --global user.email "engineering@propeldata.com"
git config --global user.name "Propel Data Cloud, Inc."
yarn changeset version --snapshot
yarn release --pre
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
yarn changeset version --snapshot canary
yarn changeset publish --tag canary --no-git-tag
env:
GITHUB_TOKEN: ${{ secrets.PROPELDATA_CI_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 365604c

Please sign in to comment.