Skip to content

Commit

Permalink
chore: refactor publish ci action
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Dec 28, 2023
1 parent 8bee5e8 commit 53a103e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,12 @@ jobs:
uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
node-version: 20
node-version: 18
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Install semantic-release extra plugins
run: npm install --save-dev @semantic-release/changelog @semantic-release/git

- name: Lint
run: npm run lint

Expand All @@ -41,8 +38,8 @@ jobs:
- name: Build
run: npm run build

- name: Release
run: npx semantic-release
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 53a103e

Please sign in to comment.