Skip to content

Commit

Permalink
build(workflows): update workflows (#111)
Browse files Browse the repository at this point in the history
* build(workflow): update publish.yml

* build(workflow): update build.yml
  • Loading branch information
mlmoravek authored Jul 30, 2024
1 parent 481616b commit dd45a73
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
branches:
- develop
- main
- master
pull_request:
branches:
- develop
- main
- master
jobs:
build:
runs-on: ubuntu-latest
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- name: Use Node.js '20.x'
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build:lib
- run: npm publish
- name: Install dependencies 📦
run: npm install
- name: Build lib
run: npm run build:lib
- name: Publish NPM lib
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion types/index.d.ts

This file was deleted.

0 comments on commit dd45a73

Please sign in to comment.