Skip to content

deploy.yml simplified #2

deploy.yml simplified

deploy.yml simplified #2

Workflow file for this run

name: Publish to NPM registry
on:
push:
branches:
- master
- release/*
jobs:
publish-gpr:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
environment: Production
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Version Patcher
uses: justalemon/[email protected]
with:
version: 1.0.${{ github.run_number }}
npm-files: 'package.json'
- run: npm i
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
access: public