Skip to content

Commit a4c4677

Browse files
committed
ci: unified prod and beta ci configs
1 parent 5c833b6 commit a4c4677

3 files changed

Lines changed: 8 additions & 109 deletions

File tree

.github/workflows/beta-release.yml

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

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ on:
33
push:
44
branches:
55
- main
6+
- beta
67
pull_request:
78
branches:
89
- main
10+
- beta
11+
merge_group:
12+
types:
13+
- checks_requested
914

1015
jobs:
1116
lint:
@@ -68,7 +73,7 @@ jobs:
6873
issues: write # To comment on released issues
6974
pull-requests: write # To comment on released pull requests
7075
id-token: write # To enable use of OIDC for npm provenance
71-
if: github.ref == 'refs/heads/main'
76+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
7277
steps:
7378
- name: Checkout
7479
uses: actions/checkout@v4
@@ -82,16 +87,11 @@ jobs:
8287
uses: actions/setup-node@v4
8388
with:
8489
node-version: "lts/*" # Use the latest LTS version of Node.js
85-
registry-url: 'https://registry.npmjs.org/' # Specify npm registry
86-
87-
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
88-
run: npm audit signatures # Check the signatures to verify integrity
8990

9091
- name: Release
9192
run: npx semantic-release # Run semantic-release to manage versioning and publishing
9293
env:
9394
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub token for authentication
94-
95-
# Why NODE_AUTH_TOKEN instead of NPM_TOKEN: https://github.com/semantic-release/semantic-release/issues/2313
96-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # npm token for publishing package
95+
NPM_CONFIG_PROVENANCE: true
96+
9797

release.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ module.exports = {
2727
'@semantic-release/npm',
2828
{
2929
npmPublish: true,
30-
tag: 'beta', // Publishes with a 'beta' tag to npm
3130
},
3231
],
3332
'@semantic-release/github', // Handles GitHub releases

0 commit comments

Comments
 (0)