From b0435a5cf1bfd6262b3d1693f29b544803722dbb Mon Sep 17 00:00:00 2001 From: Antoine BERNIER Date: Tue, 16 May 2023 13:11:38 +0200 Subject: [PATCH] pipeline versions updates (#1442) --- .github/workflows/release.yml | 29 +++++++++++++---------------- .node-version | 1 + package.json | 2 +- 3 files changed, 15 insertions(+), 17 deletions(-) create mode 100644 .node-version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1dc429f71..ea73dfb8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,20 +6,22 @@ on: - 'beta' - 'alpha' pull_request: {} + +# Cancel any previous run (see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency) +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: main: runs-on: ubuntu-latest steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.6.0 - with: - access_token: ${{ secrets.GITHUB_TOKEN }} - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '14.x' + cache: 'yarn' - name: Install deps # this runs a build script so there is no dedicated build run: yarn install @@ -30,23 +32,18 @@ jobs: runs-on: ubuntu-latest if: ${{ github.repository == 'pmndrs/drei' && contains('refs/heads/master,refs/heads/beta,refs/heads/alpha',github.ref) && github.event_name == 'push' }} steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.6.0 - with: - access_token: ${{ secrets.GITHUB_TOKEN }} - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '14.x' + cache: 'yarn' - name: Install deps # this runs a build script so there is no dedicated build run: yarn install - name: 🚀 Release - uses: cycjimmy/semantic-release-action@v2 + uses: cycjimmy/semantic-release-action@v3 with: - semantic_version: 17 extra_plugins: | @semantic-release/git branches: | diff --git a/.node-version b/.node-version new file mode 100644 index 000000000..741b4916e --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +18.14.0 \ No newline at end of file diff --git a/package.json b/package.json index e1b13c52c..e94956a97 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "typecheck": "tsc --noEmit --emitDeclarationOnly false --strict --jsx react", "typegen": "tsc --emitDeclarationOnly", "storybook": "NODE_OPTIONS=\"--openssl-legacy-provider\" start-storybook -p 6006", - "build-storybook": "build-storybook", + "build-storybook": "NODE_OPTIONS=\"--openssl-legacy-provider\" build-storybook", "copy": "copyfiles package.json README.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.husky=undefined; this.prettier=undefined; this.jest=undefined; this['lint-staged']=undefined;\"" }, "dependencies": {