-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💚 (snapshot-release): Release without PR creation
- Loading branch information
1 parent
e5ece4c
commit ba2e954
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,10 @@ env: | |
# if no inputs it's considered as a cron job | ||
REF: ${{ inputs.ref || 'develop' }} | ||
TAG: ${{ inputs.tag || 'develop' }} | ||
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }} | ||
|
||
jobs: | ||
version: | ||
snapshot: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -35,13 +36,14 @@ jobs: | |
- name: build libraries | ||
run: pnpm build | ||
|
||
- name: create release pull request or publish | ||
uses: changesets/action@v1 | ||
with: | ||
version: pnpm bump --snapshot ${{ env.TAG }} | ||
publish: pnpm release --no-git-tag | ||
commit: "🔖 (snapshot-release): versioning packages" | ||
title: "🔖 (snapshot-release) [NO-ISSUE]: versioning packages" | ||
- name: create .npmrc | ||
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc | ||
|
||
- name: create and publish snapshot release version | ||
run: | | ||
npm unpublish --scope=@ledgerhq [email protected] | ||
npm unpublish --scope=@ledgerhq [email protected] | ||
pnpm bump --snapshot ${{ env.TAG }} | ||
pnpm release --snapshot --no-git-tag --tag ${{ env.TAG }} | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }} |