Skip to content

Commit c85b39c

Browse files
committed
chore: add release from pre-release workflow
1 parent dfab988 commit c85b39c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Release from Prerelease"
2+
3+
on: workflow_dispatch
4+
5+
permissions:
6+
contents: write
7+
id-token: write
8+
9+
jobs:
10+
deploy-npm-latest-from-pre:
11+
runs-on: macos-14
12+
timeout-minutes: 30
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
18+
19+
- name: 'Setup Tools'
20+
uses: ./.github/actions/setup-tools
21+
22+
- name: "NPM Identity"
23+
run: |
24+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
25+
npm whoami
26+
27+
- name: "Git Config"
28+
run: |
29+
git config user.name "Github Workflow (on behalf of ${{ github.actor }})"
30+
git config user.email "users.noreply.github.com"
31+
32+
- name: Version & Publish
33+
env:
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
36+
run: |
37+
pnpm run ci:publish:latest-from-pre

0 commit comments

Comments
 (0)