Skip to content

Commit

Permalink
Use setup-node GitHub Actions step before running npm publish. (#762
Browse files Browse the repository at this point in the history
)

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.
  • Loading branch information
olafurpg authored Jun 2, 2022
1 parent dd9000a commit 9ab268f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: npm publish --access public
working-directory: npm-distribution
env:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ All notable changes to `src-cli` are documented in this file.

### Removed

## 3.40.3
## 3.40.4

### Added

Expand Down
2 changes: 1 addition & 1 deletion npm-distribution/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sourcegraph/src",
"version": "3.40.3",
"version": "3.40.4",
"description": "Sourcegraph CLI",
"repository": "[email protected]:sourcegraph/src-cli.git",
"author": "Code Intelligence at Sourcegraph",
Expand Down

0 comments on commit 9ab268f

Please sign in to comment.