Skip to content

Commit

Permalink
chore: update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ebukaodini committed Mar 15, 2024
1 parent 643b6a5 commit b227908
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
strategy:
matrix:
node-version: [18.x]
tag: ["require('./package.json').version"]

steps:
- name: Checkout repository
Expand All @@ -32,7 +31,7 @@ jobs:
npm install
- name: Publish to npm
run: npm publish --access public --registry=https://registry.npmjs.org/ --tag ${{ matrix.tag }} --npm-token=${{ secrets.NPM_TOKEN }}
run: npm publish --access public --registry=https://registry.npmjs.org/ --tag "require('./package.json').version" --npm-token=${{ secrets.NPM_TOKEN }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand All @@ -43,5 +42,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ matrix.tag }}
release_name: Release ${{ matrix.tag }}
tag_name: "require('./package.json').version"
release_name: Release "require('./package.json').version"

0 comments on commit b227908

Please sign in to comment.