File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed
packages/lib/createTestMountParameters Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,19 @@ jobs:
17
17
node-version : 18.13.0
18
18
registry-url : https://registry.npmjs.org/
19
19
- run : npm ci
20
- - run : npm run publishPackages
20
+ - run : TAGS=$(node ./scripts/publishPackages)
21
+ - run : echo "$TAGS"
21
22
env :
22
23
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
23
24
- uses : EndBug/add-and-commit@v9
24
25
with :
25
26
author_name : Dataport Geo Bot
26
27
28
+ - run : |
29
+ git config user.name "Dataport Geo Bot"
30
+ git config user.email "[email protected] "
31
+ for TAG_NAME in $TAGS; do
32
+ git tag $TAG_NAME
33
+ git push origin $TAG_NAME
34
+ echo "Released and tagged: $TAG_NAME"
35
+ done
Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ ## 1.3.0-mock-release-for-testing-pipeline.0
4
+
3
5
## 1.2.0
4
6
5
7
- Feature: Extend mock state to match current core state type.
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ const cp = require('child_process')
6
6
const fs = require ( 'fs' )
7
7
const packages = require ( './packages' )
8
8
9
+ const tags = [ ]
10
+
9
11
function checkForNewVersion ( cwd ) {
10
12
const { version } = JSON . parse (
11
13
fs . readFileSync ( cwd + '/package.json' , { encoding : 'UTF-8' } )
@@ -18,6 +20,13 @@ function checkForNewVersion(cwd) {
18
20
}
19
21
}
20
22
23
+ function getPackageName ( cwd ) {
24
+ const { name } = JSON . parse (
25
+ fs . readFileSync ( cwd + '/package.json' , { encoding : 'UTF-8' } )
26
+ )
27
+ return name
28
+ }
29
+
21
30
for ( const path of packages ) {
22
31
try {
23
32
const nextVersion = checkForNewVersion ( path )
@@ -30,12 +39,12 @@ for (const path of packages) {
30
39
{ cwd : path }
31
40
)
32
41
cp . execSync ( 'npm publish --access=public' , context )
33
- console . info ( `The package in '${ path } ' was published as v${ nextVersion } .` )
34
- } else {
35
- console . info ( "No update in '" + path + "'." )
42
+ tags . push ( `${ getPackageName ( path ) } @${ nextVersion } ` )
36
43
}
37
44
} catch ( e ) {
38
45
console . error ( e )
39
46
process . exitCode = 1
40
47
}
41
48
}
49
+
50
+ process . stdout . write ( tags . join ( ' ' ) )
You can’t perform that action at this time.
0 commit comments