chore: bumping dependencies (#16) #17
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: Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
with: | |
# Disabling shallow clone is recommended for improving relevancy of reporting | |
fetch-depth: 0 | |
- uses: pnpm/[email protected] | |
with: | |
version: latest | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.node-version' | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'pnpm' | |
- name: Installing dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Bump package version | |
id: bumping-version | |
uses: jpb06/[email protected] | |
with: | |
major-keywords: BREAKING CHANGE | |
minor-keywords: feat,minor | |
patch-keywords: fix,chore | |
should-default-to-patch: true | |
commit-user: jpb06 | |
commit-user-email: [email protected] | |
- name: Building package | |
run: pnpm build | |
- name: Publish package | |
if: steps.bumping-version.outputs.bump-performed == 'true' | |
run: npm publish ./dist --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |