Skip to content

Commit

Permalink
fix: npm publish (#362)
Browse files Browse the repository at this point in the history
* fix: npm publish

* fix

* fix
  • Loading branch information
yevheniyJ committed Jan 13, 2024
1 parent 64e0895 commit ef4cca7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@ jobs:
${{ runner.os }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Print NPM version
run: npm -v

- name: Install dependencies
run: npm install

Expand All @@ -51,6 +54,9 @@ jobs:
- name: Tests
run: npm run test

- name: Publish Dry Run
run: npm publish --dry-run

code-coverage:
runs-on: ubuntu-latest
needs: tests
Expand All @@ -70,7 +76,7 @@ jobs:
${{ runner.os }}-
- name: Use Node.js 16.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
cache: 'npm'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,18 @@ jobs:
registry-url: https://registry.npmjs.org/

- name: Install npm CLI
run: npm install -g npm@9.9.2
run: npm install -g npm@latest

- name: Install dependencies and build
run: |
npm -v
npm ci
npm run build
- name: Publish Dry Run
run: |
npm publish --dry-run
- name: Publish the package
run: |
npm publish --provenance
Expand Down
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ tests
.vscode
.eslint
.prettierrc
.idea
coverage
junit.xml
sandbox.js
jestconfig.json
tsconfig.json
yarn.lock
Expand Down

0 comments on commit ef4cca7

Please sign in to comment.