Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Serverless Devs
Commits
771ed806
Unverified
Commit
771ed806
authored
4 years ago
by
Anycodes
Committed by
GitHub
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Create publish_npm.yml
parent
bd9ee7dd
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/publish_npm.yml
+33
-0
.github/publish_npm.yml
with
33 additions
and
0 deletions
+33
-0
.github/publish_npm.yml
0 → 100644
+
33
-
0
View file @
771ed806
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name
:
Node.js Package
on
:
release
:
types
:
[
created
]
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-node@v2
with
:
node-version
:
12
-
run
:
npm ci
-
run
:
npm test
publish-npm
:
needs
:
build
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-node@v2
with
:
node-version
:
12
registry-url
:
https://registry.npmjs.org/
-
run
:
npm ci
-
run
:
npm publish
env
:
NODE_AUTH_TOKEN
:
${{secrets.npm_token}}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help