-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a GitHub Actions workflow that publishes to NPM when a new tag …
…is created.
- Loading branch information
Showing
21 changed files
with
228 additions
and
2,466 deletions.
There are no files selected for viewing
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,27 @@ | ||
name: Build and publish to NPM | ||
|
||
on: | ||
push: | ||
tags: ['v*'] | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install development dependencies | ||
run: npm ci | ||
|
||
- name: Build bundle | ||
run: npm run build | ||
|
||
- name: Build types | ||
- run: npm run types | ||
|
||
- name: Publish to NPM | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_PUBLISH }} | ||
run: npm publish --tag latest |
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 |
---|---|---|
@@ -1,13 +1,22 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch Program", | ||
"program": "${workspaceFolder}/app.js", | ||
"name": "ts-node", | ||
"type": "node", | ||
"request": "launch", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
"runtimeExecutable": "node", | ||
"runtimeArgs": [ | ||
"--nolazy", | ||
"-r", | ||
"ts-node/register/transpile-only" | ||
], | ||
"type": "node" | ||
"cwd": "${workspaceRoot}", | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"skipFiles": [ | ||
"<node_internals>/**", | ||
"node_modules/**" | ||
] | ||
} | ||
] | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.