Skip to content

Commit

Permalink
Merge pull request #6 from richrace/update-workflows
Browse files Browse the repository at this point in the history
Update GitHub workflows
  • Loading branch information
richrace authored Aug 24, 2023
2 parents e9f17dc + 3c96b98 commit d619588
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build
on: [push, pull_request]
on:
push:
branches: '*'
workflow_dispatch:

jobs:
build:
Expand All @@ -11,11 +14,11 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 19
- name: install dependencies
run: npm install
- name: build
run: npm run make
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 19
- name: install dependencies
run: npm ci
- name: build
run: npm run make
27 changes: 14 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Release
on:
push:
tags:
- 'v*'
release:
types:
- prereleased
- released

jobs:
release:
Expand All @@ -13,13 +14,13 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 19
- name: install dependencies
run: npm install
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 19
- name: install dependencies
run: npm ci
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish

0 comments on commit d619588

Please sign in to comment.