Skip to content

Commit 1a82319

Browse files
committed
fix: version generation & publish script
1 parent f1d6c7b commit 1a82319

File tree

4 files changed

+3
-50
lines changed

4 files changed

+3
-50
lines changed

.github/workflows/auto-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
5858
- name: Publish to npm
5959
if: steps.check-version.outputs.new-version == 'true'
60-
run: node scripts/publish-all.js
60+
run: npm publish --ws --iwr --tag latest --access public
6161
env:
6262
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6363

CONTRIBUTING.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,14 @@ npm run build
4646

4747
# Test all binaries
4848
npm run test
49-
50-
# Publish all packages to npm
51-
npm run publish-all
5249
```
5350

5451
### Versioning
5552

5653
Set the versions across all packages & update the root's dependency specs
5754

5855
```bash
59-
$ npm run version --ws --iwr 0.24.1-pre.2
56+
$ npm version --ws --iwr 0.24.1-pre.2
6057
```
6158

6259
> Note: `npm` will error because of the optional deps `"os"` & `"cpu"` definitions. You can safely ignore this error as the operation will still successfully update the `package.json

scripts/check-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function getLatestDockerTag() {
3333

3434
async function getCurrentNpmVersion() {
3535
try {
36-
const result = execSync('npm view sqld version', { encoding: 'utf8' });
36+
const result = execSync('npm view sqld@latest version', { encoding: 'utf8' });
3737
return result.trim();
3838
} catch (error) {
3939
// Package doesn't exist yet

scripts/publish-all.js

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)