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
16 changes: 0 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: "Publish to npm"
on:
release:
types: ["published"]
push:
branches: ["main"]

jobs:
publish:
Expand All @@ -25,20 +23,6 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Update package.json version
run: |
if [ -n "$GITHUB_REF" ]; then
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
version=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
jq ".version = \"$version\"" package.json > package.json.tmp
else
version=$(echo $GITHUB_SHA | cut -c1-7)
jq ".version |= . + \"-$version\"" package.json > package.json.tmp
fi

mv package.json.tmp package.json
fi

- name: Publish to npm
run: npm publish --provenance --access public
env:
Expand Down
Loading