From cb28a5b171d9119ccffac389ffd05a723c88ddde Mon Sep 17 00:00:00 2001 From: junners Date: Sat, 16 Nov 2024 01:18:39 -0800 Subject: [PATCH] chore: bump node to node 22 --- .github/workflows/deploy-ALPHA.yml | 47 ---------- .github/workflows/deploy-BETA.yml | 119 ++++++++++++------------- .github/workflows/deploy-RELEASE.yml | 2 +- .github/workflows/generate-RELEASE.yml | 2 +- 4 files changed, 61 insertions(+), 109 deletions(-) delete mode 100644 .github/workflows/deploy-ALPHA.yml diff --git a/.github/workflows/deploy-ALPHA.yml b/.github/workflows/deploy-ALPHA.yml deleted file mode 100644 index 18a7a30..0000000 --- a/.github/workflows/deploy-ALPHA.yml +++ /dev/null @@ -1,47 +0,0 @@ ---- -# -# Documentation: -# https://help.github.com/en/articles/workflow-syntax-for-github-actions -# - -####################################### -# Start the job on all push to master # -####################################### -name: "Build & Deploy - ALPHA" -on: - push: - branches: - - "alpha" - -permissions: read-all - -concurrency: - group: ${{ github.ref_name }}-${{ github.workflow }} - cancel-in-progress: true - -############### -# Set the Job # -############### -jobs: - deploy: - name: Deploy alpha - runs-on: ubuntu-latest - permissions: read-all - environment: - name: alpha - steps: - - uses: actions/checkout@v3 - # Setup .npmrc file to publish to npm - - uses: actions/setup-node@v3 - with: - node-version: 18 - registry-url: https://registry.npmjs.org - always-auth: true - # Defaults to the user or organization that owns the workflow file - scope: rubenhalman - - run: yarn - - run: yarn config set version-git-tag false && tsc -b - - run: ALPHAID=$(date '+%Y%m%d%H%M') && yarn version --prepatch --preid="alpha$ALPHAID" - - run: yarn config set network-timeout 300000 && yarn publish --tag alpha - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/deploy-BETA.yml b/.github/workflows/deploy-BETA.yml index 7fedb69..e9eeb37 100644 --- a/.github/workflows/deploy-BETA.yml +++ b/.github/workflows/deploy-BETA.yml @@ -1,61 +1,60 @@ --- - # - # Documentation: - # https://help.github.com/en/articles/workflow-syntax-for-github-actions - # - - ####################################### - # Start the job on all push to master # - ####################################### - name: 'Build & Deploy - Beta' - on: - push: - branches: - - master - - permissions: read-all - - concurrency: - group: ${{ github.ref_name }}-${{ github.workflow }} - cancel-in-progress: true - - ############### - # Set the Job # - ############### - jobs: - - # Deploy to NPM - deploy_to_npm: - name: Deploy to NPM (beta) - runs-on: ubuntu-latest - permissions: - contents: write # to be able to publish a GitHub release - issues: write # to be able to comment on released issues - pull-requests: write # to be able to comment on released pull requests - id-token: write - environment: - name: beta - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - persist-credentials: false - - uses: actions/setup-node@v4.0.2 - with: - node-version: 20.x - registry-url: https://registry.npmjs.org - scope: rubenhalman - - name: Install Dependencies - run: | - npm ci - - name: Semantic Release Dependency - run: | - npm install -g semantic-release https://github.com/oclif/semantic-release/archive/refs/tags/v3.1.5.tar.gz - cd semantic-release - npm install - - name: Publish Beta - env: - GITHUB_TOKEN: ${{ secrets.TOKENX }} - NPM_TOKEN: ${{ secrets.NPM_TOKENX }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKENX }} - run: semantic-release -e @oclif/semantic-release ./semantic-release/release.config.mjs \ No newline at end of file +# +# Documentation: +# https://help.github.com/en/articles/workflow-syntax-for-github-actions +# + +####################################### +# Start the job on all push to master # +####################################### +name: "Build & Deploy - Beta" +on: + push: + branches: + - master + +permissions: read-all + +concurrency: + group: ${{ github.ref_name }}-${{ github.workflow }} + cancel-in-progress: true + +############### +# Set the Job # +############### +jobs: + # Deploy to NPM + deploy_to_npm: + name: Deploy to NPM (beta) + runs-on: ubuntu-latest + permissions: + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests + id-token: write + environment: + name: beta + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + persist-credentials: false + - uses: actions/setup-node@v4.0.2 + with: + node-version: 22.x + registry-url: https://registry.npmjs.org + scope: rubenhalman + - name: Install Dependencies + run: | + npm ci + - name: Semantic Release Dependency + run: | + npm install -g semantic-release https://github.com/oclif/semantic-release/archive/refs/tags/v3.1.5.tar.gz + cd semantic-release + npm install + - name: Publish Beta + env: + GITHUB_TOKEN: ${{ secrets.TOKENX }} + NPM_TOKEN: ${{ secrets.NPM_TOKENX }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKENX }} + run: semantic-release -e @oclif/semantic-release ./semantic-release/release.config.mjs diff --git a/.github/workflows/deploy-RELEASE.yml b/.github/workflows/deploy-RELEASE.yml index 802a1bd..2ce179f 100644 --- a/.github/workflows/deploy-RELEASE.yml +++ b/.github/workflows/deploy-RELEASE.yml @@ -33,7 +33,7 @@ jobs: # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4.0.2 with: - node-version: 20.x + node-version: 22.x registry-url: "https://registry.npmjs.org" # Defaults to the user or organization that owns the workflow file scope: rubenhalman diff --git a/.github/workflows/generate-RELEASE.yml b/.github/workflows/generate-RELEASE.yml index c17159b..d144ede 100644 --- a/.github/workflows/generate-RELEASE.yml +++ b/.github/workflows/generate-RELEASE.yml @@ -28,7 +28,7 @@ jobs: # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4.0.2 with: - node-version: 20.x + node-version: 22.x registry-url: https://registry.npmjs.org scope: rubenhalman - name: Generate New Release Number