Skip to content

Commit

Permalink
chore: add new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 8, 2024
1 parent b6fe6a5 commit ab32646
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/update-force.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Update Themes and Grammars (Force)

permissions:
contents: write
id-token: write

on:
workflow_dispatch:

jobs:
update-grammars:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'

- name: pnpm setup
uses: pnpm/action-setup@v4

- name: install
run: pnpm install

- run: pnpm run fetch:force
env:
GITHUB_TOKEN: ${{ secrets.FETCH_GITHUB_TOKEN }}
timeout-minutes: 2

- 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 }}

0 comments on commit ab32646

Please sign in to comment.