Skip to content

Commit

Permalink
update workflow;
Browse files Browse the repository at this point in the history
  • Loading branch information
ricki-epsilla committed Dec 6, 2023
1 parent 48ede83 commit 15a4eec
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/npm-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

publish:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'

- name: Extract version from package.json
Expand All @@ -33,12 +51,6 @@ jobs:
exit 1
fi
- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Bump version and push tag
uses: mathieudutour/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 15a4eec

Please sign in to comment.