-
Notifications
You must be signed in to change notification settings - Fork 5
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
3 changed files
with
52 additions
and
7 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 |
---|---|---|
|
@@ -9,20 +9,31 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
|
||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: ${{ runner.os }}-yarn- | ||
|
||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 12 | ||
node-version: 16.x | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- uses: little-core-labs/[email protected] | ||
id: tagName | ||
with: | ||
tagRegex: "v(.*)" | ||
tagRegexGroup: 1 | ||
|
||
- run: yarn install | ||
- run: yarn run lerna bootstrap | ||
- run: yarn run lint | ||
- run: yarn run build | ||
- run: yarn test | ||
- run: yarn run lerna publish ${{ steps.tagName.outputs.tag }} --yes --no-git-tag-version --no-push | ||
- run: yarn run lint | ||
- run: yarn run lerna publish ${{ steps.tagName.outputs.tag }} --yes --no-git-tag-version --no-push --no-verify-access | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |
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 |
---|---|---|
|
@@ -13,12 +13,22 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
|
||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: ${{ runner.os }}-yarn- | ||
|
||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 12 | ||
node-version: 16.x | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- run: yarn install | ||
- run: yarn run lerna bootstrap | ||
- run: yarn run lint | ||
- run: yarn run build | ||
- run: yarn test | ||
- run: yarn run lint |
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,24 @@ | ||
name: Verify NPM | ||
|
||
on: | ||
push: | ||
branches: | ||
- ci-debug | ||
|
||
jobs: | ||
validate-npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- run: npm config list -l | ||
- run: printenv | ||
- name: Ensure access | ||
run: npm whoami | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} |