Skip to content

Commit

Permalink
add build and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jun 12, 2024
1 parent 6104eb5 commit 9671452
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Publish
on:
push:
tags:
- v*
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ”πŸŸπŸ₯€
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Use Node.js πŸ˜‚
uses: actions/setup-node@v4
with:
node-version: 18

- name: Test πŸ§ͺ
run: |
npm ci
npm run check-ci
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
11 changes: 3 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ”πŸŸπŸ₯€
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Use Node.js πŸ˜‚
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18

- name: Test πŸ§ͺ
run: |
npm ci
npm run check-ci
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9671452

Please sign in to comment.