-
-
Notifications
You must be signed in to change notification settings - Fork 57
47 lines (37 loc) · 1.08 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
name: Update Themes and Grammars
permissions:
contents: write
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update-grammars:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- name: pnpm setup
uses: pnpm/action-setup@v2
- name: install
run: pnpm install
- run: pnpm run fetch
env:
GITHUB_TOKEN: ${{ secrets.FETCH_GITHUB_TOKEN }}
- id: bump
name: Bump versions
run: pnpm run bump
- uses: EndBug/add-and-commit@v9
if: ${{ steps.bump.outputs.CHANGED }}
with:
author_name: GitHub Actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: 'feat: update Themes and Grammars [ci skip]'
- run: pnpm -r publish
if: ${{ steps.bump.outputs.CHANGED }}
env:
NPM_CONFIG_PROVENANCE: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}