forked from leonardssh/rage-rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e2e099
commit 6b8e804
Showing
8 changed files
with
2,815 additions
and
3,079 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: NPM Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish: | ||
name: publish | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
|
||
- name: Use Node.js v16 | ||
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048 # tag=v3 | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: Install Dependencies | ||
run: | | ||
npm install | ||
- name: Build Library | ||
run: npm run build | ||
|
||
- name: Publish | ||
run: | | ||
npm set registry "https://registry.npmjs.org" | ||
npm set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN | ||
npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |
Oops, something went wrong.