Skip to content

Commit

Permalink
fix(nodejs): fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
taitasu555 committed Feb 8, 2024
1 parent a93bf99 commit f8a3fdb
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/package-nodejs-viorn-lib-publich.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: NodeJs Viron/lib Package CI

on:
push:
branches:
- develop
paths:
- "packages/nodejs/**"
- "package.json"
pull_request:
types: [synchronize]
# push:
# branches:
# - develop
# paths:
# - "packages/nodejs/**"
# - "package.json"

jobs:
build-and-publish:
Expand All @@ -21,19 +23,16 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
- name: Install dependencies and Build
run: |
echo "Installing packages..."
npm install --no-progress --legacy-peer-deps
npm run build -w packages/linter
cd packages/nodejs
npm cache verify
npm run build -w packages/nodejs
- name: Set NPM_TOKEN
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Build and Publish
- name: Publish
run: |
echo "Building..."
npm run build
echo "Publishing..."
npm publish
env:
Expand Down

0 comments on commit f8a3fdb

Please sign in to comment.