-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18c197b
commit 27e5850
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,14 +21,23 @@ jobs: | |
with: | ||
ref: ${{ github.event.release.target_commitish }} | ||
- name: Validate and extract release information | ||
id: release | ||
uses: manovotny/[email protected] | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
always-auth: true | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm publish --provenance | ||
- name: Publish latest version | ||
if: steps.release.outputs.tag == '' | ||
run: npm publish --provenance | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Publish next version | ||
if: steps.release.outputs.tag != '' | ||
run: npm publish --provenance --tag next | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |