Skip to content
Snippets Groups Projects
Unverified Commit 1c2add83 authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

build: fix npm release (#9672)

parent d4d24b71
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,7 @@ jobs:
- name: Publish ${{ github.event.client_payload.version }}
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> ~/.npmrc
npm publish --tag ${{ github.event.client_payload.tag }}
npm publish --tag ${TAG:-latest}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG: ${{ github.event.client_payload.tag }}
......@@ -3,7 +3,7 @@ import shell from 'shelljs';
import { options } from './utils.mjs';
const version = options.release;
const tag = options.tag;
const tag = options.tag || 'latest';
const dry = options.dryRun;
shell.echo(`Dispatching version: ${version}`);
......
......@@ -6,7 +6,7 @@ program
.version('0.0.1')
.requiredOption('-r, --release <type>', 'Version to use')
.option('-s, --sha <type>', 'Git sha to use')
.option('-t, --tag <type>', 'Npm dist-tag to publish to', 'latest')
.option('-t, --tag <type>', 'Npm dist-tag to publish to')
.option('-d, --dry-run');
program.parse(process.argv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment