diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 7eb2722..fba5787 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3c4814..77b212c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -66,4 +66,4 @@ jobs: run: npm run test:coverage - name: Test code compilation - run: sh scripts/build + run: npm run build