-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.29 KB
/
update.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
on:
workflow_dispatch:
schedule:
- cron: 0 12 * * *
push:
branches:
- main
paths:
- generating.config.json
concurrency:
group: update-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
uses: ./.github/workflows/tests.yml
update:
# for npm publish --provenance
permissions:
id-token: write
contents: write
needs: [ tests ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
# Publish new versions
- run: deno task generate
- run: deno task publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Update list in README.md
- run: deno task list
- run: |
git diff --exit-code README.md || (
git config user.name github-actions
git config user.email [email protected]
git add README.md
git commit -m 'docs: Update packages in readme'
git push
)
- run: |
git diff --exit-code deno.lock || (
git config user.name github-actions
git config user.email [email protected]
git add deno.lock
git commit -m 'deps: update deno.lock'
git push
)