Skip to content

Commit

Permalink
feat(build): simplify compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Jul 24, 2023
1 parent 544095a commit f4363bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,20 @@ jobs:
run: npm install

- name: Compile code
run: sh scripts/build
run: npm run build

- name: Copy README to build
run: cp README.md build/README.md

- name: Copy LICENSE to build
run: cp LICENSE.md build/LICENSE.md

- name: Automatic GitHub Release
uses: justincy/github-action-npm-release@2.0.1
id: release

- name: Publish to NPM Registry
run: npm publish --access public
run: cd build && npm publish --access public
if: steps.release.outputs.released == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: npm run test:coverage

- name: Test code compilation
run: sh scripts/build
run: npm run build

windows:
runs-on: windows-latest
Expand All @@ -66,4 +66,4 @@ jobs:
run: npm run test:coverage

- name: Test code compilation
run: sh scripts/build
run: npm run build

0 comments on commit f4363bd

Please sign in to comment.