Skip to content

Commit

Permalink
CI workflows updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gius committed Jul 19, 2022
1 parent 7e2258c commit 00a551e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 7 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
16 changes: 13 additions & 3 deletions .github/workflows/validatecommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
24 changes: 24 additions & 0 deletions .github/workflows/verifynpm.yml
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 }}

0 comments on commit 00a551e

Please sign in to comment.