-
Notifications
You must be signed in to change notification settings - Fork 682
46 lines (43 loc) · 1.2 KB
/
publish.yml
File metadata and controls
46 lines (43 loc) · 1.2 KB
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
name: Publishing
on:
release:
types: [published]
permissions:
id-token: write # Required for OIDC (Trusted Publishing)
contents: read
jobs:
npm-publish:
if: ${{ !github.event.release.draft }}
runs-on: ubuntu-latest
environment: npmjs
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}
- run: git fetch --force --tags
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run publish-please-only
docker-publish:
needs: npm-publish
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}
- run: git fetch --force --tags
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: npm ci
- run: npx gulp build
- run: gulp docker-publish