Skip to content

4.15.0 | Community Release #25

4.15.0 | Community Release

4.15.0 | Community Release #25

Workflow file for this run

---
#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
#
#######################################
# Start the job on all push to master #
#######################################
name: "Build & Deploy - RELEASE"
on:
release:
# Want to run the automation when a release is created
types: ["created"]
permissions: read-all
concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: true
###############
# Set the Job #
###############
jobs:
deploy_to_npm:
name: Deploy to NPM (release)
runs-on: ubuntu-latest
permissions: read-all
environment:
name: release
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/[email protected]
with:
node-version: 22.x
registry-url: https://registry.npmjs.org
scope: rubenhalman
- name: Publish
run: |
npm install
npm run swc:sim:pack
cd out/src
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKENX }}