Skip to content

Commit

Permalink
publish on a new tag (#6057)
Browse files Browse the repository at this point in the history
* publish on push to stable
  • Loading branch information
isumygin-sc authored and slimbuck committed Feb 16, 2024
1 parent b43bd01 commit 581ec4b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to npm

on:
push:
tags:
- '*'

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
registry-url: 'https://registry.npmjs.org/'

- name: Install Dependencies
run: npm install

- name: Build PlayCanvas
run: npm run build:publish

- name: Publish to npm
run: npm publish --DRY-RUN
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 581ec4b

Please sign in to comment.