2525 run : |
2626 export NEXT_VERSION="$(/bin/git-version --folder=$PWD --release-branch=master)"
2727 echo "Next version is ${NEXT_VERSION}"
28- echo "${NEXT_VERSION}" > . version
28+ echo "${NEXT_VERSION}" > next- version.txt
2929 echo "version=${NEXT_VERSION}" >> $GITHUB_ENV
3030 - name : Get next npm tag name
3131 run : |
@@ -37,15 +37,15 @@ jobs:
3737 export PUBLISH_TAG="pr"
3838 fi
3939 echo "Next tag is ${PUBLISH_TAG}"
40- echo "${PUBLISH_TAG}" > . tag
40+ echo "${PUBLISH_TAG}" > publish- tag.txt
4141 - name : Upload versions
4242 uses : actions/upload-artifact@v3
4343 with :
4444 name : versions
4545 if-no-files-found : error
4646 path : |
47- . version
48- . tag
47+ next- version.txt
48+ publish- tag.txt
4949
5050 build :
5151 runs-on : ubuntu-latest
8686 with :
8787 name : versions
8888 - name : Store version
89- run : echo "version=$(cat . version)" >> $GITHUB_ENV
89+ run : echo "version=$(cat next- version.txt )" >> $GITHUB_ENV
9090 - name : Configure Git
9191 run : |
9292 git config user.email "gh-actions@users.noreply.github.com"
@@ -115,9 +115,9 @@ jobs:
115115 - name : Version package
116116 run : |
117117 # Update version in packages to publish
118- npm version $(cat . version) -m "Release version %s"
118+ npm version $(cat next- version.txt ) -m "Release version %s"
119119 - name : Publish to NPM
120- run : npm publish --tag $(cat . tag)
120+ run : npm publish --tag $(cat publish- tag.txt )
121121 - uses : actions/setup-node@v3
122122 with :
123123 node-version : ' 18.x'
@@ -136,8 +136,8 @@ jobs:
136136 run : |
137137 # HACK: Override npm package name to be able to publish in GitHub
138138 sed -i 's/^ "name":.*/ "name": "@rtfpessoa\/diff2html",/g' package.json
139- echo "Going to publish version $(cat . version) to GitHub"
140- npm publish --tag $(cat . tag)
139+ echo "Going to publish version $(cat next- version.txt ) to GitHub"
140+ npm publish --tag $(cat publish- tag.txt )
141141 # HACK: Restore npm package name
142142 sed -i 's/^ "name":.*/ "name": "diff2html",/g' package.json
143143 - name : Upload docs
0 commit comments