0.2.2 (#20) #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: read | |
jobs: | |
# TODO: Add build job to run tests | |
publish-npm: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Dependencies | |
run: npm ci | |
# Ensure the version is up to date | |
- name: Update the Config Node version | |
run: node ./scripts/update-config-node-version.js | |
- name: Build | |
run: npm run build | |
- name: Publish package to public npm registry | |
uses: JS-DevTools/npm-publish@v3 | |
with: | |
access: public | |
tag: ${{ contains(github.ref, '-beta') && 'beta' || contains(github.ref, '-alpha') && 'alpha' || 'latest' }} | |
token: ${{ secrets.NPM_TOKEN }} |