Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix npm release #9672

Merged
merged 1 commit into from Apr 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release-npm.yml
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion tools/dispatch-release.mjs
Expand Up @@ -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}`);
Expand Down
2 changes: 1 addition & 1 deletion tools/utils.mjs
Expand Up @@ -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);
Expand Down