Skip to content

Commit 4e1a4a5

Browse files
committed
remove previous attempt
1 parent 90aa3ea commit 4e1a4a5

File tree

9 files changed

+1
-342
lines changed

9 files changed

+1
-342
lines changed

.github/workflows/publish-packages.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,10 @@ jobs:
1717
node-version: 18.13.0
1818
registry-url: https://registry.npmjs.org/
1919
- run: npm ci
20-
- run: TAGS=$(npm run publishPackages)
21-
- run: echo "$TAGS"
20+
- run: npm run publishPackages
2221
env:
2322
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2423
- uses: EndBug/add-and-commit@v9
2524
with:
2625
author_name: Dataport Geo Bot
2726
author_email: [email protected]
28-
- run: |
29-
git config user.name "Dataport Geo Bot"
30-
git config user.email "[email protected]"
31-
for TAG_NAME in $TAGS
32-
do
33-
git tag $TAG_NAME
34-
git push origin $TAG_NAME
35-
echo "$TAG_NAME"
36-
done
37-

packages/lib/mockPackage/CHANGELOG.md

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

packages/lib/mockPackage/LICENSE

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

packages/lib/mockPackage/README.md

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

packages/lib/mockPackage/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/lib/mockPackage/package.json

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

packages/lib/mockPackage/tsconfig.json

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

packages/lib/mockPackage/vite.config.js

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

scripts/publishPackages.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
const cp = require('child_process')
66
const fs = require('fs')
77
const packages = require('./packages')
8-
const tags = []
98

109
function checkForNewVersion(cwd) {
1110
const { version } = JSON.parse(
@@ -19,13 +18,6 @@ function checkForNewVersion(cwd) {
1918
}
2019
}
2120

22-
function getPackageName(cwd) {
23-
const { name } = JSON.parse(
24-
fs.readFileSync(cwd + '/package.json', { encoding: 'UTF-8' })
25-
)
26-
return name
27-
}
28-
2921
for (const path of packages) {
3022
try {
3123
const nextVersion = checkForNewVersion(path)
@@ -38,7 +30,6 @@ for (const path of packages) {
3830
{ cwd: path }
3931
)
4032
cp.execSync('npm publish --access=public', context)
41-
tags.push(`${getPackageName(path)}@${nextVersion}`)
4233
console.info(`The package in '${path}' was published as v${nextVersion}.`)
4334
} else {
4435
console.info("No update in '" + path + "'.")
@@ -48,5 +39,3 @@ for (const path of packages) {
4839
process.exitCode = 1
4940
}
5041
}
51-
52-
return tags

0 commit comments

Comments
 (0)