From 2c94fa6ca879585af2c68b36c853c4d46e8c1cef Mon Sep 17 00:00:00 2001 From: Iacopo Ciao Date: Mon, 3 Jun 2024 20:10:37 +0200 Subject: [PATCH] ci: changed deploy steps --- .github/workflows/release.yml | 11 ++++++----- package.json | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2110415..7c7a535 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,15 +19,16 @@ jobs: node-version: '16' - name: Setup Corepack - run: | - corepack enable - corepack prepare npm@10.8.1 --activate + run: corepack enable - name: Install dependencies - run: npm install + run: corepack npm install + + - name: Build project + run: corepack npm run build - name: Run Semantic Release env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release + run: corepack npm run release diff --git a/package.json b/package.json index 173c822..c99cb63 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "scripts": { "build": "tsc", "lint": "eslint 'lib/src/**/*.ts'", - "lint:fix": "eslint 'lib/src/**/*.ts' --fix" + "lint:fix": "eslint 'lib/src/**/*.ts' --fix", + "release": "semantic-release" }, "bin": { "cypress-runner": "./bin/cypress-runner.js"