Updated to SDP v0.18.4-172-g4060970 #107
Workflow file for this run
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
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
publish: | |
name: 'Release' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 19 | |
cache: pnpm | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies | |
run: pnpm install | |
# Pull the version from the tag and update the package.json | |
- name: Update Version | |
continue-on-error: true | |
run: npm version from-git --no-git-tag-version | |
- name: Publish package | |
run: pnpm publish --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Commit version update | |
continue-on-error: true | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Github Actions" | |
git commit -am "Version Bump" && git push | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
generateReleaseNotes: true | |
token: ${{ secrets.GITHUB_TOKEN }} |