mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-05 23:33:08 +00:00
feat: create workflow for npm install (#1200)
This commit is contained in:
parent
5ca94b1ea3
commit
93f2c4e478
16
.github/actions/npm/action.yml
vendored
Normal file
16
.github/actions/npm/action.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
name: npm i
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- run: npm i
|
||||||
|
shell: bash
|
||||||
|
if: contains('
|
||||||
|
refs/heads/master
|
||||||
|
refs/heads/release-please--branches--master
|
||||||
|
', github.ref)
|
||||||
|
- uses: bahmutov/npm-install@v1
|
||||||
|
if: contains('
|
||||||
|
refs/heads/master
|
||||||
|
refs/heads/release-please--branches--master
|
||||||
|
', github.ref) == false
|
||||||
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_JS }}
|
node-version: ${{ env.NODE_JS }}
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: ./.github/actions/npm
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npm run check
|
- run: npm run check
|
||||||
- run: npm run doc
|
- run: npm run doc
|
||||||
@ -32,7 +32,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_JS }}
|
node-version: ${{ env.NODE_JS }}
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: ./.github/actions/npm
|
||||||
- name: Generate protobuf code
|
- name: Generate protobuf code
|
||||||
run: |
|
run: |
|
||||||
npm run proto
|
npm run proto
|
||||||
@ -51,7 +51,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_JS }}
|
node-version: ${{ env.NODE_JS }}
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: ./.github/actions/npm
|
||||||
- run: npm run build:esm
|
- run: npm run build:esm
|
||||||
- run: npm run test:browser
|
- run: npm run test:browser
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_JS }}
|
node-version: ${{ env.NODE_JS }}
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: ./.github/actions/npm
|
||||||
- run: npm run build:esm
|
- run: npm run build:esm
|
||||||
- run: npm run test:node
|
- run: npm run test:node
|
||||||
env:
|
env:
|
||||||
@ -129,7 +129,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_JS }}
|
node-version: ${{ env.NODE_JS }}
|
||||||
|
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: ./.github/actions/npm
|
||||||
- run: npm run build:esm
|
- run: npm run build:esm
|
||||||
- run: npm run test:node
|
- run: npm run test:node
|
||||||
env:
|
env:
|
||||||
@ -170,7 +170,7 @@ jobs:
|
|||||||
git fetch origin
|
git fetch origin
|
||||||
git checkout origin/master
|
git checkout origin/master
|
||||||
|
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: ./.github/actions/npm
|
||||||
|
|
||||||
- name: build nwaku
|
- name: build nwaku
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user