Skip to content

Commit

Permalink
Update release process
Browse files Browse the repository at this point in the history
  • Loading branch information
Roaders committed May 18, 2022
1 parent 8325cfe commit 1a58182
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [10.x, 12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Create Release
on:
push:
branches:
- main

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.x'

- name: Install node modules and verify build
run: npm ci && npm run build-release

- name: Release
uses: justincy/[email protected]
id: release

- name: Print release output
if: ${{ steps.release.outputs.released == 'true' }}
run: echo Release ID ${{ steps.release.outputs.release_id }}

- name: Publish
if: steps.release.outputs.released == 'true'
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
25 changes: 0 additions & 25 deletions .github/workflows/release.yml

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"watch-test:jest": "jest --watch",
"copy-dist": "concurrently --kill-others-on-fail npm:copy-dist-*",
"watch-test-coverage": "karma start",
"prepublishOnly": "npm run build-release",
"lint:fix": "eslint . --ext .ts,.js --fix"
},
"devDependencies": {
Expand Down

0 comments on commit 1a58182

Please sign in to comment.