typescript(loopover): ci: Added a basic github action
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
43e657ac90
commit
23e9f54b57
21
typescript/loopover/.github/workflows/npmpublish.yml
vendored
Normal file
21
typescript/loopover/.github/workflows/npmpublish.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: Node.js Package
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
publish-npm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm i -g pnpm
|
||||
- run: pnpm install
|
||||
- run: pnpm run build
|
||||
- run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
Loading…
Reference in a new issue