Skip to content

Commit 5f9ae31

Browse files
chore(deps): bump actions/attest-build-provenance from 1 to 4 in the everything group (#44)
* chore(deps): bump actions/attest-build-provenance Bumps the everything group with 1 update: [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance). Updates `actions/attest-build-provenance` from 1 to 4 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](actions/attest-build-provenance@v1...v4) --- updated-dependencies: - dependency-name: actions/attest-build-provenance dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: everything ... Signed-off-by: dependabot[bot] <support@github.com> * feat: add CI workflow for build, tests, and npm publish; remove old Vitest workflow * fix: update CI workflow name and modify npm publish step to prevent failure * fix: standardize quotes in npm-publish workflow tag pattern * fix: remove insecure Node version allowance in npm-publish workflow --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: miichom <hello@cammy.xyz> Co-authored-by: Cammy <52957759+miichom@users.noreply.github.com>
1 parent cb090b1 commit 5f9ae31

3 files changed

Lines changed: 54 additions & 31 deletions

File tree

.github/workflows/ci-verify.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI - Verify
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
strategy:
13+
matrix:
14+
node-version: [20.x, 22.x, 24.x]
15+
steps:
16+
- uses: actions/checkout@v7
17+
- name: Install node ${{ matrix.node-version }}
18+
uses: actions/setup-node@v6
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- name: Install dependencies
22+
run: npm ci
23+
- name: Run tests
24+
run: npm test
25+
- name: Report Coverage
26+
if: always()
27+
uses: davelosert/vitest-coverage-report-action@v2
28+
with:
29+
threshold-icons: "{0: '🔴', 80: '🟠', 90: '🟢'}"
30+
verify-publish:
31+
runs-on: ubuntu-latest
32+
needs: test
33+
permissions:
34+
contents: write
35+
id-token: write
36+
attestations: write
37+
packages: write
38+
steps:
39+
- uses: actions/checkout@v7
40+
- uses: actions/setup-node@v6
41+
with:
42+
node-version: "24.x"
43+
registry-url: "https://registry.npmjs.org"
44+
- run: npm ci
45+
- run: npm run build
46+
- name: Generate provenance
47+
uses: actions/attest-build-provenance@v4
48+
with:
49+
subject-path: dist/**
50+
- name: Verify npm publish
51+
run: npm publish --provenance --dry-run || true

.github/workflows/ci-vitest.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Publish Package to npmjs
2+
23
on:
34
push:
45
tags:
56
- "v*"
7+
68
jobs:
79
build:
810
runs-on: ubuntu-latest
@@ -20,10 +22,7 @@ jobs:
2022
- run: npm ci
2123
- run: npm run build
2224
- name: Generate provenance
23-
uses: actions/attest-build-provenance@v1
24-
env:
25-
# actions/attest-build-provenance@v1 uses Node 20
26-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
25+
uses: actions/attest-build-provenance@v4
2726
with:
2827
subject-path: dist/**
2928
- run: npm publish --provenance --access public

0 commit comments

Comments
 (0)