Comments (7)
Oh actually this seems to be fixed in #928
Can you replace
NODE_AUTH_TOKEN: \${{ secrets.NPM_AUTH_TOKEN }}
with
NPM_AUTH_TOKEN: \${{ secrets.NPM_AUTH_TOKEN }}
in your workflow file?
@vinayakkulkarni @KnisterPeter
Please let me know if it fixes your issue.
from shipjs.
@eunjae-lee Thanks, I'll report back when I do the next release.
from shipjs.
Oh FYI, if anyone is facing an issue while publishing to GPR, here's a sample Shipjs trigger .yml
:
name: Ship js trigger
on:
pull_request:
types:
- closed
jobs:
build:
name: Release
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v')
steps:
- name: Checkout code 🛎
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: main
- name: Setup node env 🏗
uses: actions/[email protected]
with:
node-version: 14
registry-url: 'https://npm.pkg.github.com'
scope: '<@scope>'
- name: Install dependencies 👨🏻💻
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release pkg to registry ⚡️
run: npx shipjs trigger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}
Apparently, NODE_AUTH_TOKEN is required for npm publish
Ref: actions/setup-node#52 (comment)
from shipjs.
Thanks @vinayakkulkarni for reporting the issue.
Hey @jeetiss if I remember correctly, you have dealt with an issue regarding NPM_AUTH_TOKEN before, right?
This bug is coming from my recent change. Do you have any idea what is wrong here?
If not, let me know. I will keep investigating the issue.
from shipjs.
Happened for me as well. I would say, the first issue here is, that the release is marked as success but the process failed.
The release trigger should defnitly fail.
from shipjs.
Works fine. You close this one. 🎉
from shipjs.
@KnisterPeter thanks for the confirmation 👍
@vinayakkulkarni this will fix your issue!
from shipjs.
Related Issues (20)
- update content of README.md
- setup: help with protected branch HOT 1
- Not a bug, just need help getting started... HOT 6
- Updating PR message
- Updating guide on `release:prepare` and `release:trigger` HOT 5
- What if we get rid of the concept of "mergeStrategy" ? HOT 2
- Improve GitHub Actions template HOT 9
- Generate .env when run shipjs setup HOT 5
- Can't trigger release if there's only one commit HOT 3
- pullRequestReviewers octokit deprecation error HOT 2
- Getting the branch in prepare for multiple releases HOT 1
- Dependency Dashboard
- [Vulnerability] An issue with shelljs in `shipjs-lib` internal package HOT 3
- Setup wizard showing incomplete branch names HOT 5
- "Git tag doesn't exist" in GitHub Actions HOT 2
- fix(deps): issue with one of the transitive dependency causing dependabot alert(s) HOT 1
- Not able to authenticate using Github Enterprise version HOT 10
- make `nextVersion` work with multiple versions
- trigger workflow fails to create a tag HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shipjs.