From a6e9cc359a1d0e69e1790ef12e1536567a4231c4 Mon Sep 17 00:00:00 2001 From: "Deepak Vishwakarma[MS]" Date: Thu, 8 Feb 2024 22:08:17 +0800 Subject: [PATCH] fix: deploy action --- .github/workflows/node.js.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 55a63ff..b6da802 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,13 +1,23 @@ # 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 +name: Deploy deno-by-example on: push: - branches: [ "next" ] - pull_request: - branches: [ "next" ] + branches: ["next"] + + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + jobs: build: @@ -20,9 +30,9 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm'