diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..1e90417 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,32 @@ +# 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 +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "master-vue" ] + +jobs: + build: + + runs-on: ubuntu-latest + + env: + GIT_TOKEN: ${{ secrets.GIT_TOKEN }} + + strategy: + matrix: + node-version: [22.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: yarn install + - run: git config --global user.name "kabbagepatch" && git config --global user.email kavishrmunjal@gmail.com + - run: ./deploy.sh diff --git a/deploy.sh b/deploy.sh index 99f6e1f..fc63644 100755 --- a/deploy.sh +++ b/deploy.sh @@ -18,7 +18,7 @@ git add -A git commit -m 'deploy' # if you are deploying to https://.github.io -git push -f git@github.com:kabbagepatch/kabbagepatch.github.io.git master +git push -f https://kabbagepatch:$GIT_TOKEN@github.com/kabbagepatch/kabbagepatch.github.io.git master # if you are deploying to https://.github.io/ # git push -f git@github.com:/.git master:gh-pages