-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (36 loc) · 999 Bytes
/
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
name: Package
on:
push:
branches:
- master
workflow_dispatch:
env:
node-version: 20
jobs:
Package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "${{ env.node-version }}"
cache: npm
- name: Install Node.js dependencies
run: |
npm ci
- name: Run package
run: |
npm run package
- name: Push package
run: |
git config --local user.email "[email protected]"
git config --local user.name "kenchan0130"
git remote set-url origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
git add -N .
if git diff --exit-code --quiet;then
echo "No change."
else
git add .
git commit -m "[skip ci] Create package by ${GITHUB_SHA}"
git push origin master
fi