Skip to content

Publish Package

Publish Package #75

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: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- uses: bahmutov/npm-install@v1
- name: 🔧 Set Timezone
uses: szenius/[email protected]
with:
timezoneLinux: "Africa/Johannesburg"
- name: 📋 Run Tests
run: npm test
- name: 👷🏼‍ Build
run: npm run build
- name: 🚀 Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}