Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bd15ad5

Browse files
authored
Merge pull request #622 from CodeSignal/github-package
Publish to GitHub packages
2 parents 7d72ecd + cfc055b commit bd15ad5

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

‎.github/workflows/publish.yml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish npm package
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: '14'
19+
registry-url: 'https://npm.pkg.github.com'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Build package
25+
run: npm run build
26+
27+
- name: Publish package
28+
run: npm publish --registry=https://npm.pkg.github.com
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /