Skip to content

prepare 0.6.1 hotfix (#102) #19

prepare 0.6.1 hotfix (#102)

prepare 0.6.1 hotfix (#102) #19

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Release
on:
push:
branches: [ release ]
jobs:
publish-npm:
runs-on: ubuntu-latest
environment: npm
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm test
- name: get-version
id: package-version
uses: martinbeentjes/[email protected]
- name: Parse changelog
id: parse-changelog
uses: schwma/[email protected]
with:
version: '${{ steps.package-version.outputs.current-version }}'
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: 'v${{ steps.package-version.outputs.current-version }}'
body: '${{ steps.parse-changelog.outputs.body }}'
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}