Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
- run: npm run build
- run: npm test

- name: Sync version from git tag
run: |
TAG_VERSION="${GITHUB_REF_NAME#v}"
npm version "$TAG_VERSION" --no-git-tag-version --allow-same-version
echo "Synced package.json version to $TAG_VERSION"

- name: Publish
run: npm publish --provenance --access public
env:
Expand All @@ -35,4 +41,5 @@ jobs:
run: |
VERSION="${GITHUB_REF_NAME#v}"
sleep 10
npm view @fiale-plus/repo-arch@"$VERSION"
npm view @fiale-plus/repo-arch@"$VERSION" version
echo "Published $VERSION verified"
Loading