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:
1717 node-version : 18.13.0
1818 registry-url : https://registry.npmjs.org/
1919 - run : npm ci
20- - run : npm run publishPackages
20+ - run : TAGS=$(node ./scripts/publishPackages)
21+ - run : echo "$TAGS"
2122 env :
2223 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
2324 - uses : EndBug/add-and-commit@v9
2425 with :
2526 author_name : Dataport Geo Bot
262728+ - 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 11# CHANGELOG
22
3+ ## 1.3.0-mock-release-for-testing-pipeline.0
4+
35## 1.2.0
46
57- 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')
66const fs = require ( 'fs' )
77const packages = require ( './packages' )
88
9+ const tags = [ ]
10+
911function checkForNewVersion ( cwd ) {
1012 const { version } = JSON . parse (
1113 fs . readFileSync ( cwd + '/package.json' , { encoding : 'UTF-8' } )
@@ -18,6 +20,13 @@ function checkForNewVersion(cwd) {
1820 }
1921}
2022
23+ function getPackageName ( cwd ) {
24+ const { name } = JSON . parse (
25+ fs . readFileSync ( cwd + '/package.json' , { encoding : 'UTF-8' } )
26+ )
27+ return name
28+ }
29+
2130for ( const path of packages ) {
2231 try {
2332 const nextVersion = checkForNewVersion ( path )
@@ -30,12 +39,12 @@ for (const path of packages) {
3039 { cwd : path }
3140 )
3241 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 } ` )
3643 }
3744 } catch ( e ) {
3845 console . error ( e )
3946 process . exitCode = 1
4047 }
4148}
49+
50+ process . stdout . write ( tags . join ( ' ' ) )
You can’t perform that action at this time.
0 commit comments