-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1005 Bytes
/
release.yaml
File metadata and controls
35 lines (35 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "Release"
on:
push: {}
permissions:
contents: write
jobs:
release:
name: "Release"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build -ws
- run: npm run build
- run: tar -czf client-web.tar.gz build
- uses: actions/upload-artifact@v4
with:
name: client-web
path: client-web.tar.gz
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: client-web.tar.gz
generate_release_notes: true
# Publish packages to NPM
- name: Publish packages to NPM
if: startsWith(github.ref, 'refs/tags/v')
working-directory: packages/session
run: |
npm version ${GITHUB_REF#refs/tags/v}
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
npm publish