Skip to content

Release 3.3.2

Release 3.3.2 #50

Workflow file for this run

name: Release Package
on:
pull_request:
types: [closed]
branches: [main]
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
pull-requests: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
- name: Install Node.js dependencies
run: npm ci
- name: Configure npm for publish
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: Release package
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release:true')
run: npm run build && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}