Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix canary-release workflow #184

Merged
merged 4 commits into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading