Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Automatically publish to npm #84

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

Merged
merged 2 commits into from
Sep 27, 2020
Merged

Automatically publish to npm #84

merged 2 commits into from
Sep 27, 2020

Conversation

j-f1
Copy link
Member

@j-f1 j-f1 commented Sep 26, 2020

I copied the code from GitHub’s example.

This should activate whenever a new release is tagged.

@kateinoigakukun needs to upload an npm token to the secrets section of the repo for this to work.

Let’s give this a try for v0.7.1.

This should activate whenever a new release is tagged.
@github-actions
Copy link

github-actions bot commented Sep 26, 2020

Time Change: +532.75ms (3%)

Total Time: 15,681.25ms

Test name Duration Change
Serialization/Swift Int to JavaScript 5,872ms +346.5ms (5%) 🔍
ℹ️ View Unchanged
Test name Duration Change
Serialization/Write JavaScript number directly 184ms 0ms
Serialization/Write JavaScript string directly 189.25ms +0.25ms
Serialization/Swift String to JavaScript 5,939.5ms +224.25ms (3%)
Object heap/Increment and decrement RC 3,496.5ms -38.25ms (1%)

performance-action

with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, wouldn't it require a ci script to be defined?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm ci is like npm install but it never modifies package.json.

@kateinoigakukun
Copy link
Member

Could you test this script on another test repo?

@MaxDesiatov
Copy link
Contributor

MaxDesiatov commented Sep 27, 2020

I've verified it works in my gatsby-remark-codemirror package. Good to go, you just need to add the npm_token secret, and make sure your npm OTP is authorization-only if you have it enabled.

@kateinoigakukun
Copy link
Member

@MaxDesiatov @j-f1 Could you tell me your npm account name? I'll invite you as owner.

@MaxDesiatov
Copy link
Contributor

I'm maxd on npm 🙂

Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kateinoigakukun kateinoigakukun merged commit 29fb15f into main Sep 27, 2020
@kateinoigakukun kateinoigakukun deleted the npm-publish branch September 27, 2020 14:52
@j-f1
Copy link
Member Author

j-f1 commented Sep 27, 2020

I’m j-f on npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants