Skip to content

Commit 37e46c5

Browse files
committed
chore: bump version to 1.0.2
1 parent 6b2a4ce commit 37e46c5

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,16 @@
5151
# env:
5252
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5353

54-
name: Publish to npm & GitHub Release
54+
name: Publish to npm
5555

5656
on:
5757
push:
5858
tags:
5959
- "v*.*.*" # e.g. v1.0.0
6060

61+
permissions:
62+
contents: write # 👈 required for creating releases
63+
6164
jobs:
6265
build:
6366
runs-on: ubuntu-latest
@@ -96,19 +99,7 @@ jobs:
9699
- name: Build project
97100
run: npm run build
98101

99-
- name: Check if version already exists
100-
id: check
101-
run: |
102-
VERSION=$(node -p "require('./package.json').version")
103-
NAME=$(node -p "require('./package.json').name")
104-
if npm view $NAME@$VERSION > /dev/null 2>&1; then
105-
echo "exists=true" >> $GITHUB_OUTPUT
106-
else
107-
echo "exists=false" >> $GITHUB_OUTPUT
108-
fi
109-
110102
- name: Publish to npm
111-
if: steps.check.outputs.exists == 'false'
112103
run: npm publish --access public
113104
env:
114105
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)