mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 13:53:12 +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
|
||||
with:
|
||||
node-version: ${{ env.NODE_JS }}
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- uses: ./.github/actions/npm
|
||||
- run: npm run build
|
||||
- run: npm run check
|
||||
- run: npm run doc
|
||||
@ -32,7 +32,7 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ env.NODE_JS }}
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- uses: ./.github/actions/npm
|
||||
- name: Generate protobuf code
|
||||
run: |
|
||||
npm run proto
|
||||
@ -51,7 +51,7 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ env.NODE_JS }}
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- uses: ./.github/actions/npm
|
||||
- run: npm run build:esm
|
||||
- run: npm run test:browser
|
||||
|
||||
@ -75,7 +75,7 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ env.NODE_JS }}
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- uses: ./.github/actions/npm
|
||||
- run: npm run build:esm
|
||||
- run: npm run test:node
|
||||
env:
|
||||
@ -129,7 +129,7 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ env.NODE_JS }}
|
||||
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- uses: ./.github/actions/npm
|
||||
- run: npm run build:esm
|
||||
- run: npm run test:node
|
||||
env:
|
||||
@ -170,7 +170,7 @@ jobs:
|
||||
git fetch origin
|
||||
git checkout origin/master
|
||||
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- uses: ./.github/actions/npm
|
||||
|
||||
- name: build nwaku
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user