8000 fix build · rtfpessoa/diff2html@2f8c477 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f8c477

Browse files
committed
fix build
1 parent 064659a commit 2f8c477

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/test-and-publish.yml

< 8000 span class="sr-only">Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
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
@@ -86,7 +86,7 @@ jobs:
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

Comments
 (0)
0