Skip to content

Commit f2109a9

Browse files
committed
add release workflow
1 parent fc720ee commit f2109a9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release Workflow
2+
3+
permissions:
4+
contents: read
5+
id-token: write
6+
7+
on: workflow_dispatch
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v5
14+
15+
# Setup .npmrc file to publish to npm
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: "20.x"
19+
registry-url: "https://registry.npmjs.org"
20+
21+
- name: Install Bun
22+
uses: oven-sh/setup-bun@v2
23+
with:
24+
bun-version-file: "package.json"
25+
26+
- run: bun install
27+
28+
- run: bun run build:prod
29+
working-directory: src
30+
31+
- run: npm publish --provenance --access public
32+
working-directory: src/dist/ngrx-signalr-core
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_CONFIG_TOKEN }}

0 commit comments

Comments
 (0)