-
Notifications
You must be signed in to change notification settings - Fork 152
60 lines (54 loc) · 1.49 KB
/
release.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: release
on:
push:
tags:
- 'v*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
wasm:
runs-on: ubuntu-latest
needs:
- goreleaser
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 6.0.2
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Build
run: VERSION=${{ github.ref_name }} ./scripts/build-wasm.sh
- name: Configure package version
working-directory: wasm
run: pnpm version ${{ github.ref_name }}
- run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}"
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish package
working-directory: wasm
run: pnpm publish --no-git-checks