Update release.yml

This commit is contained in:
Daniel Hougaard
2024-08-30 01:11:27 +04:00
parent a3fa87a960
commit 084bce114b

7
.github/release.yml vendored
View File

@@ -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 }}