Skip to content

Release

Release #5

Workflow file for this run

name: Release
on:
push:
tags:
- "*.*"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 10.x
- name: Build
run: |
npm ci
npm run build
- name: Publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc
npm --no-git-tag-version --allow-same-version version ${GITHUB_REF#"refs/tags/"}
npm publish --access public