Skip to content

v0.2.48

v0.2.48 #64

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
publish-package:
name: Publish package
runs-on: ubuntu-latest
timeout-minutes: 5
env:
FORCE_COLOR: true
HUSKY_SKIP_INSTALL: 1
HUSKY_SKIP_HOOKS: 1
HUSKY: 0
steps:
- name: Check out
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org
- name: Extract tag version
id: extract-tag-version
run: |
TAG="${GITHUB_REF:10}"
TAG_VERSION="${TAG//v/}"
echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV
- name: Build
run: |
npm ci
npm run build
- name: Publish
run: |
npm version --no-commit-hooks --no-git-tag-version ${{ env.TAG_VERSION }} && \
npm publish --access public --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}