chore(deps): update node.js to v22.22.1 (#808) #755
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is a basic workflow to help you get started with Actions | |
| name: DEPLOY | |
| # Controls when the action will run. | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the main branch | |
| push: | |
| branches: | |
| - main | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| # This workflow contains a single job called "build" | |
| build: | |
| # The type of runner that the job will run on | |
| runs-on: ubuntu-latest | |
| # Steps represent a sequence of tasks that will be executed as part of the job | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - name: Configure Git | |
| uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.TOKEN }} | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@v6.3.0 | |
| with: | |
| node-version: 22.x | |
| # Runs a single command using the runners shell | |
| - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. | |
| run: | | |
| npm ci | |
| npm run build | |
| - name: Deploy 🚀 | |
| env: | |
| username: kaltepeter | |
| email: ${{ secrets.GH_EMAIL }} | |
| run: | | |
| git config user.name $username | |
| git config user.email $email | |
| git remote set-url origin https://$username:${{ secrets.TOKEN }}@github.com/kaltepeter/notes.git | |
| npm run deploy |