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
Showing
23 changed files
with
1,895 additions
and
3,038 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,37 @@ | ||
name: Create release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
create_release: | ||
name: Create release | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: setup node version | ||
uses: actions/setup-node@v2 | ||
with: | ||
cache: 'yarn' | ||
node-version: '16' | ||
- name: install dependencies | ||
run: yarn install | ||
- name: transpile typescript | ||
run: yarn build | ||
- name: run tests | ||
run: yarn test | ||
- name: Get latest release tag | ||
id: latest_release_tag | ||
uses: InsonusK/get-latest-release@v1.0.1 | ||
with: | ||
myToken: ${{ github.token }} | ||
view_top: 1 | ||
- name: Get current version | ||
id: current_version | ||
run: echo "::set-output name=version::$(node -e 'console.log(require(\"./package.json\").version)')" | ||
- name: Create a new release | ||
uses: softprops/action-gh-release@v1 | ||
if: ${{ steps.latest_release_tag.outputs.tag_name != steps.current_version.outputs.version }} |
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,25 @@ | ||
name: Publish package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: setup node version | ||
uses: actions/setup-node@v2 | ||
with: | ||
cache: 'yarn' | ||
node-version: '16.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: install dependencies | ||
run: yarn install | ||
- name: transpile typescript | ||
run: yarn build | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,25 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '!master' | ||
|
||
jobs: | ||
run_tests: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: setup node version | ||
uses: actions/setup-node@v2 | ||
with: | ||
cache: 'yarn' | ||
node-version: '16' | ||
- name: install dependencies | ||
run: yarn install | ||
- name: transpile typescript | ||
run: yarn build | ||
- name: run tests | ||
run: yarn test |
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,3 +1,4 @@ | ||
lib | ||
es6 | ||
node_modules | ||
tsconfig.tsbuildinfo |
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,5 +1,6 @@ | ||
.github | ||
node_modules | ||
src | ||
.vscode | ||
tsconfig.tsbuildinfo | ||
tsconfig.json | ||
tsconfig.json | ||
node_modules | ||
src |
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.
Oops, something went wrong.