all in one workflow

This commit is contained in:
Luke Hagar
2023-04-18 13:23:45 -05:00
parent 05e801ee19
commit e8658f4d85
2 changed files with 19 additions and 2 deletions

View File

@@ -84,5 +84,22 @@ jobs:
with:
tag_name: ${{ github.event.inputs.version }}
release_name: ${{ github.event.inputs.version }}
draft: true
draft: false
prerelease: false
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
- run: |
cd plexjs
npm ci
- id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./plexjs/package.json

View File

@@ -1,7 +1,7 @@
name: Publish SDK package to npmjs
on:
release:
types: [created]
types: [published]
jobs:
build:
runs-on: ubuntu-latest