Skip to content

Publication to NPM.

Publication to NPM. #1

Workflow file for this run

name: Publish to NPM
on:
push:
tags:
# package-major.minor.patch-beta.build
- '*-*.*.*-*.*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
package: ['phaser']
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build --workspace @barinbritva/${{ matrix.package }}-sdk
- name: Publish
if: startsWith(github.ref, 'refs/tags/${{ matrix.package }}-')
run: cd packages/${{ matrix.package }} && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}