Skip to content

Commit

Permalink
Update bump-version.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dambrisco authored Jun 19, 2024
1 parent 526cdd1 commit 27721d7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
env:
GH_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: "Create and commit release"
- run: npm ci
- name: "configure git"
run: |
git config user.name github-actions
git config user.email [email protected]
- name: "create, commit, and publish release"
run: |
version="$(npm version --no-git-tag-version ${{ inputs.part }})"
git commit -am "release: $version"
git push
gh release create "$version" --generate-notes
publish:
uses: dambrisco/pug-tree/.github/workflows/publish.yaml@trunk
needs:
- bump
secrets: inherit
npm publish --provenance --access public

0 comments on commit 27721d7

Please sign in to comment.