-
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.
feat(config): add calcMethodName (#1)
* feat(config): add calcMethodName * chore: run GitHub Action to tests and release
- Loading branch information
1 parent
62952b5
commit ee9d12a
Showing
8 changed files
with
145 additions
and
8 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,44 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
action: | ||
name: Release Action | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: 'package.json' | ||
|
||
- name: Use node_modules cache | ||
uses: actions/cache@v3 | ||
id: modules-cache | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-modules- | ||
|
||
- name: Install dependencies | ||
if: steps.modules-cache.outputs.cache-hit != 'true' | ||
run: yarn install --immutable | ||
|
||
- name: Run tests | ||
run: yarn test | ||
|
||
- name: Run release | ||
run: yarn release |
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,51 @@ | ||
name: Verify | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- '!**--skip-ci' | ||
- '!wip/**' | ||
- '!experiments/**' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
types: [opened] | ||
|
||
jobs: | ||
action: | ||
name: Verify Action | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: 'package.json' | ||
|
||
- name: Use node_modules cache | ||
uses: actions/cache@v3 | ||
id: modules-cache | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-modules- | ||
|
||
- name: Install dependencies | ||
if: steps.modules-cache.outputs.cache-hit != 'true' | ||
run: yarn install --immutable | ||
|
||
- name: Run type check | ||
run: yarn test:types | ||
|
||
- 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
//registry.npmjs.org/:_authToken=${NPM_TOKEN} | ||
registry=https://registry.npmjs.org/ | ||
always-auth=true |
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 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 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 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 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