-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.09 KB
/
package.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
name: Package Action
on:
push:
branches:
- main
paths-ignore:
- 'dist/**'
workflow_dispatch:
jobs:
package:
name: Package dist files
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
env:
# Output logs to file in case we need to inspect errors.
GITSIGN_LOG: "/tmp/gitsign.log"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
ref: ${{ github.ref_name }}
- name: Setup Node.js 20.x
uses: actions/[email protected]
with:
node-version: 20.x
- name: Deps
run: |
npm ci
- name: Package
run: |
npm run build
npm run package
- uses: chainguard-dev/actions/setup-gitsign@main
- name: Commit Dist
run: |
git config --global user.email "[email protected]"
git config --global user.name "Robot Rox"
git add dist
git commit -m "chore: Update dist" || echo "No changes to commit."
git push origin