Skip to content

Release 0.0.57

Release 0.0.57 #122

name: package-version-release
on: push
permissions:
actions: read
contents: write
packages: write
jobs:
build:
runs-on: ubuntu-latest
if: contains(github.ref, 'main')
steps:
- uses: actions/checkout@v3
with:
ref: main
- uses: EndBug/version-check@v2
id: check
- if: steps.check.outputs.changed == 'true'
run: 'echo "Version change found. New version is ${{ steps.check.outputs.version }}"'
- if: steps.check.outputs.changed == 'true'
uses: ncipollo/release-action@v1
with:
tag: v${{ steps.check.outputs.version }}
- if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- if: steps.check.outputs.changed == 'true'
run: npm install
- if: steps.check.outputs.changed == 'true'
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN_FOR_GITHUB_RELEASE}}