Skip to content

Commit

Permalink
💚 (snapshot-release): Release without PR creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jdabbech-ledger committed Aug 28, 2024
1 parent e5ece4c commit 2eb14da
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/snapshot_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:
TAG: ${{ inputs.tag || 'develop' }}

jobs:
version:
snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -35,13 +35,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 and publish snapshot release version
run: |
pnpm bump --snapshot ${{ env.TAG }}
pnpm release --no-git-tag
env:
GITHUB_TOKEN: ${{ github.token }}
NPM_CONFIG__AUTH: ${{ secrets.NPMJS_TOKEN }}
NPM_CONFIG__AUTHTOKEN: ${{ secrets.NPMJS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
"npm_config_//registry.npmjs.org/:_authToken": ${{ secrets.NPMJS_TOKEN }}

0 comments on commit 2eb14da

Please sign in to comment.