diff --git a/.github/release.yml b/.github/release.yml index 4e133eb..c97a5ac 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -25,9 +25,12 @@ jobs: - name: Install dependencies run: npm ci - - name: Set NPM version #get the version from the tag + - name: Set NPM version run: npm version ${{ github.ref_name }} --allow-same-version --no-git-tag-version + - name: Build API client + run: npm run generate-api:infisical + - name: Build SDK run: npm run build @@ -50,7 +53,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish NPM - run: npm publish --access public --registry=https://registry.npmjs.org/ + run: npm publish --dry-run --access public --registry=https://registry.npmjs.org/ # todo: remove dry run env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}