Skip to content

Merge pull request #2 from dlabaj/ci-cd-updates #3

Merge pull request #2 from dlabaj/ci-cd-updates

Merge pull request #2 from dlabaj/ci-cd-updates #3

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Release
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Build dist
run: npm build
- name: Release to NPM
run: npx semantic-release