Skip to content

Commit

Permalink
fix: publish ci
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragxxd committed Apr 11, 2024
1 parent 66babe0 commit 0a51465
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Install dependencies
run: npm install

- name: Run linters
run: npm run lint

Expand All @@ -53,7 +53,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -74,7 +74,7 @@ jobs:

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run test

Expand Down Expand Up @@ -137,14 +137,14 @@ jobs:
with:
node-version: 20.x

- name: Login to npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Install Dependencies
run: npm ci

- name: Build Packages
run: npm run build

- name: Publish to npm
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release

0 comments on commit 0a51465

Please sign in to comment.