Skip to content

Commit

Permalink
fix: pipeline (#30)
Browse files Browse the repository at this point in the history
* fix: Update CI action signing the built package
  • Loading branch information
cyaiox authored Dec 18, 2024
1 parent b4bab17 commit 78141e4
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,44 @@ on:

name: CI
jobs:
build-push:
test-node-20:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 20.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: npm
node-version: 20
cache: 'npm'
- name: install
run: npm install
- name: build
run: make build
- name: test
run: make test
- name: Publish
uses: menduz/oddish-action@master
with:
registry-url: "https://registry.npmjs.org"
access: public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

test-node-20:
build-push:
needs: test-node-20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 20.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: npm
node-version: 20
cache: 'npm'
- name: install
run: npm install
- name: build
run: make build
- name: test
run: make test
- name: Publish
uses: menduz/oddish-action@master
with:
registry-url: "https://registry.npmjs.org"
access: public
## sign the deployment
provenance: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 comments on commit 78141e4

Please sign in to comment.