From 5ccbfcd841fe322589685afdb7ac03b23d20a612 Mon Sep 17 00:00:00 2001 From: taozhi8833998 Date: Tue, 30 Apr 2024 11:20:30 +0800 Subject: [PATCH] refactor: update github action --- .github/workflows/manual.yml | 34 ------------------- .../workflows/npm-publish-github-packages.yml | 15 ++++---- 2 files changed, 6 insertions(+), 43 deletions(-) delete mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml deleted file mode 100644 index 16c51518..00000000 --- a/.github/workflows/manual.yml +++ /dev/null @@ -1,34 +0,0 @@ -# This is a basic workflow that is manually triggered - -name: Manual workflow - -# Controls when the action will run. Workflow runs when manually triggered using the UI -# or API. -on: - workflow_dispatch: - # Inputs the workflow accepts. - inputs: - name: - # Friendly description to be shown in the UI instead of 'name' - description: 'Person to greet' - # Default value if no value is explicitly provided - default: 'World' - # Input has to be provided for the workflow to run - required: true - # The data type of the input - type: string - -# 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 "greet" - greet: - # 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: - # Runs a single command using the runners shell - - name: Send greeting - run: echo "Hello $def" - env: - def: ${{ secrets.dddd }} diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 18417979..61f9a6b3 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -27,10 +27,10 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: '20.x' + node-version: 16 registry-url: https://registry.npmjs.org/ - name: Temp disable SSL Verification for registry.npm.taobao.org @@ -50,14 +50,11 @@ jobs: publish-gpr: needs: build runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: '20.x' + node-version: 16 registry-url: https://npm.pkg.github.com/ scope: '@taozhi8833998'