From a5ce318aac9703a2792288c14469973da6711218 Mon Sep 17 00:00:00 2001 From: arnaudbuchholz-sap Date: Tue, 14 Mar 2023 15:48:47 -0400 Subject: [PATCH] fix(package): adjust release command --- .github/workflows/release.yml | 7 +++---- package.json | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99fd3f1..076941a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,8 +22,7 @@ jobs: - name: Testing run: npm test - name: Release + run: npm run release env: - CI: 'true' - GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }} - NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} - run: npx semantic-release \ No newline at end of file + GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }} + NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index a358a8a..02abac3 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "code-style": "eslint '**/*.js'", "test-run": "mocha ./lib --recursive", "audit": "npm audit", - "test": "npm run test-run && npm run audit && npm run code-style" + "test": "npm run test-run && npm run audit && npm run code-style", + "release": "CI=true semantic-release" }, "repository": { "type": "git",