File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 66 - main
77 workflow_dispatch :
88
9+ permissions :
10+ contents : read
11+ id-token : write
12+
913jobs :
1014 publish :
1115 name : Publish to NPM
1216 runs-on : ubuntu-latest
13- permissions :
14- contents : read
15- id-token : write
1617 if : |
1718 github.event_name == 'workflow_dispatch' ||
1819 startsWith(github.event.head_commit.message, 'release: ')
4849 - name : Get package version
4950 id : get-version
5051 run : |
51- VERSION=$(node -p "require('./packages/web-console/ package.json').version")
52+ VERSION=$(node -p "require('./package.json').version")
5253 echo "version=$VERSION" >> $GITHUB_OUTPUT
5354 echo "Publishing version: $VERSION"
5455
9798 - name : Check if version exists on npm
9899 id : check-version
99100 run : |
100- VERSION=$(node -p "require('./packages/web-console/ package.json').version")
101+ VERSION=$(node -p "require('./package.json').version")
101102 if npm view @questdb/web-console@$VERSION version 2>/dev/null; then
102103 echo "Version $VERSION already exists on npm"
103104 echo "exists=true" >> $GITHUB_OUTPUT
@@ -109,7 +110,6 @@ jobs:
109110 - name : Publish to npm
110111 if : steps.check-version.outputs.exists == 'false'
111112 run : npm publish --provenance --access public
112- working-directory : packages/web-console
113113
114114 update-questdb :
115115 name : Update QuestDB Web Console Version
You can’t perform that action at this time.
0 commit comments