Skip to content

Commit 1e5ffaf

Browse files
committed
build: publish alpha workflow
1 parent 0c70bcf commit 1e5ffaf

File tree

3 files changed

+1264
-1057
lines changed

3 files changed

+1264
-1057
lines changed

.github/workflows/publish-alpha.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish Beta version to registry
2+
on:
3+
workflow_dispatch:
4+
5+
permissions:
6+
contents: write # to be able to publish a GitHub release
7+
issues: write # to be able to comment on released issues
8+
id-token: write # to enable use of OIDC for npm provenance
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
environment: production
14+
# restricts job to develop branch
15+
if: github.ref == 'refs/heads/develop'
16+
steps:
17+
- name: Checkout repo
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
persist-credentials: false
22+
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: 'yarn'
28+
29+
- name: Install dependencies
30+
run: yarn --frozen-lockfile
31+
32+
- name: Build
33+
run: yarn build:packages
34+
35+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
36+
run: yarn npm audit
37+
38+
- name: Publish Alpha
39+
run: yarn multi-semantic-release --deps.bump=override --deps.release=patch --sequential-init
40+
env:
41+
NPM_CONFIG_PROVENANCE: true
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@commitlint/config-conventional": "^17.7.0",
2626
"@lidofinance/eslint-config": "^0.35.0",
2727
"@next/eslint-plugin-next": "^14.0.1",
28-
"@qiwi/multi-semantic-release": "6.7.0",
28+
"@qiwi/multi-semantic-release": "7.1.1",
2929
"@typescript-eslint/eslint-plugin": "^5",
3030
"@typescript-eslint/parser": "^5.46.0",
3131
"eslint": "^8.46.0",
@@ -57,7 +57,12 @@
5757
],
5858
"release": {
5959
"branches": [
60-
"main"
60+
"main",
61+
{
62+
"name": "develop",
63+
"channel": "alpha",
64+
"prerelease": "alpha"
65+
}
6166
]
6267
},
6368
"packageManager": "[email protected]",

0 commit comments

Comments
 (0)