Skip to content

Publish Package

Publish Package #50

Workflow file for this run

name: Publish Package
on:
workflow_dispatch:
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- uses: bahmutov/npm-install@v1
- name: 📋 Run Tests
run: npm test
- name: 👷🏼‍ Build
run: npm run build
- name: 🚀 Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}