commit
be4b1d0624
1 changed files with 7 additions and 0 deletions
7
.github/workflows/test-and-publish.yml
vendored
7
.github/workflows/test-and-publish.yml
vendored
|
|
@ -84,6 +84,8 @@ jobs:
|
|||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: versions
|
||||
- name: Store version
|
||||
run: echo "version=$(cat .version)" >> $GITHUB_ENV
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.email "gh-actions@users.noreply.github.com"
|
||||
|
|
@ -140,6 +142,11 @@ jobs:
|
|||
yarn publish --tag $(cat .tag) --non-interactive --new-version $(cat .version)
|
||||
# HACK: Restore npm package name
|
||||
sed -i 's/^ "name":.*/ "name": "diff2html",/g' package.json
|
||||
- name: Tag commit
|
||||
uses: tvdias/github-tagger@v0.0.1
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
tag: "${{ env.version }}"
|
||||
- name: Upload docs
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
|
|
|||
Loading…
Reference in a new issue