-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.14 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
50
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
- name: Setup Node.js 20.x
uses: actions/[email protected]
with:
node-version: 20.x
- name: Deps
run: |
npm ci
- name: Lint
run: |
npm run lint
- name: Package
run: |
npm run build
npm run package
# TODO(dhaus): Configure secrets in repository to enable pushing the dist.
# - 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