Skip to content

Commit 9ab268f

Browse files
authored
Use setup-node GitHub Actions step before running npm publish. (#762)
The last `npm publish` step failed with an authorization error https://github.com/sourcegraph/src-cli/runs/6707002077?check_suite_focus=true ``` npm ERR! need auth This command requires you to be logged in to https://registry.npmjs.org/ 29 ``` Our current hypothesis is that this change fixes the issue.
1 parent dd9000a commit 9ab268f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/goreleaser.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
uses: actions/checkout@v3
4242
with:
4343
fetch-depth: 0
44+
- uses: actions/setup-node@v3
45+
with:
46+
node-version: 16
47+
registry-url: 'https://registry.npmjs.org'
4448
- run: npm publish --access public
4549
working-directory: npm-distribution
4650
env:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ All notable changes to `src-cli` are documented in this file.
1919

2020
### Removed
2121

22-
## 3.40.3
22+
## 3.40.4
2323

2424
### Added
2525

npm-distribution/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sourcegraph/src",
3-
"version": "3.40.3",
3+
"version": "3.40.4",
44
"description": "Sourcegraph CLI",
55
"repository": "git@github.com:sourcegraph/src-cli.git",
66
"author": "Code Intelligence at Sourcegraph",

0 commit comments

Comments
 (0)