build(actions): use pnpm and update gh-pages with conditions
This commit is contained in:
14
.github/workflows/update-charwords.yaml
vendored
14
.github/workflows/update-charwords.yaml
vendored
@@ -14,20 +14,16 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [20.x]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use PNPM
|
||||||
uses: actions/setup-node@v3
|
uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
version: latest
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm i
|
run: pnpm i
|
||||||
- name: Build all
|
- name: Build all
|
||||||
run: npm run charwords
|
run: pnpm run charwords
|
||||||
- name: Commit changes if any
|
- name: Commit changes if any
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user