From c9fd6a830fd8efc29ffafaadf2dc7dd260501817 Mon Sep 17 00:00:00 2001 From: Ido Rosenthal Date: Wed, 20 Sep 2023 17:32:06 +0300 Subject: [PATCH] ci: set v5 release flow --- .github/workflows/release3.yml | 22 ---------------------- .github/workflows/release5.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/release3.yml create mode 100644 .github/workflows/release5.yml diff --git a/.github/workflows/release3.yml b/.github/workflows/release3.yml deleted file mode 100644 index 9f7822552..000000000 --- a/.github/workflows/release3.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: release3 -on: - push: - branches: ['3.x'] -jobs: - npm: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Use Node.js 14 - uses: actions/setup-node@v3 - with: - node-version: 14 - registry-url: 'https://registry.npmjs.org/' - cache: yarn - - run: npm i -g yarn@1 - - run: yarn config set network-timeout 300000 - - run: yarn --frozen-lockfile - - run: yarn build - - run: npx pleb@5 publish --tag release-3.x - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release5.yml b/.github/workflows/release5.yml new file mode 100644 index 000000000..5df351882 --- /dev/null +++ b/.github/workflows/release5.yml @@ -0,0 +1,20 @@ +name: release5 +on: + push: + branches: ['5.x'] +jobs: + npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 16 + uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: 'https://registry.npmjs.org/' + cache: npm + - run: npm ci + - run: npm run build + - run: npx pleb@5 publish --tag release-5.x + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}