Skip to content

v1.9.2+20240229

v1.9.2+20240229 #13

Workflow file for this run

name: release and publish to GPR.
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Check version
id: check_version
run: echo "VERSION=$(node -p "require('./package.json').version.split('+')[0]")" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.check_version.outputs.VERSION }}
name: v${{ steps.check_version.outputs.VERSION }}
body: v${{ steps.check_version.outputs.VERSION }}
draft: false
prerelease: false
target_commitish: main