Skip to content

Commit

Permalink
small fix to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Elius94 committed May 19, 2022
1 parent 8256b5f commit 15ecf8c
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Release Package

on:
push:
Expand All @@ -14,8 +14,11 @@ jobs:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
registry-url: "https://registry.npmjs.org"
Expand All @@ -28,24 +31,27 @@ jobs:
needs: test
steps:
- name: Release
- uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
with:
generate_release_notes: true

publish:
name: Release and NPM publish
needs: release
runs-on: windows-latest
steps:
- name: Release and NPM publish
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v2
with:
node-version: 17
registry-url: "https://registry.npmjs.org"

- id: check
- uses: EndBug/version-check@v1
uses: EndBug/version-check@v1
with:
file-url: https://unpkg.com/[email protected]/package.json
static-checking: localIsNew
Expand Down

0 comments on commit 15ecf8c

Please sign in to comment.