Skip to content

Commit 45f08ff

Browse files
authored
Create node.js.yml (#35)
* Create node.js.yml * Update node.js.yml * Update node.js.yml * Update node.js.yml * Update node.js.yml * Update node.js.yml * Update node.js.yml * Update node.js.yml * Update node.js.yml * Update deploy.sh * Update deploy.sh * Update deploy.sh * Update deploy.sh * Update node.js.yml * Update deploy.sh * Update node.js.yml * Update node.js.yml
1 parent 4fd444a commit 45f08ff

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/node.js.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ "master-vue" ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
env:
16+
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
17+
18+
strategy:
19+
matrix:
20+
node-version: [22.x]
21+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'npm'
30+
- run: yarn install
31+
- run: git config --global user.name "kabbagepatch" && git config --global user.email kavishrmunjal@gmail.com
32+
- run: ./deploy.sh

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ git add -A
1818
git commit -m 'deploy'
1919

2020
# if you are deploying to https://<USERNAME>.github.io
21-
git push -f git@github.com:kabbagepatch/kabbagepatch.github.io.git master
21+
git push -f https://kabbagepatch:$GIT_TOKEN@github.com/kabbagepatch/kabbagepatch.github.io.git master
2222

2323
# if you are deploying to https://<USERNAME>.github.io/<REPO>
2424
# git push -f git@github.com:<USERNAME>/<REPO>.git master:gh-pages

0 commit comments

Comments
 (0)