Update main.yml
This commit is contained in:
parent
58e6129f13
commit
b4c258f694
1 changed files with 6 additions and 0 deletions
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
@ -34,6 +34,7 @@ jobs:
|
||||||
run: pnpm test:ci
|
run: pnpm test:ci
|
||||||
- name: Generate coverage report
|
- name: Generate coverage report
|
||||||
uses: irongut/CodeCoverageSummary@v1.3.0
|
uses: irongut/CodeCoverageSummary@v1.3.0
|
||||||
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
||||||
with:
|
with:
|
||||||
filename: coverage/cobertura-coverage.xml
|
filename: coverage/cobertura-coverage.xml
|
||||||
format: markdown
|
format: markdown
|
||||||
|
@ -68,6 +69,7 @@ jobs:
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
- name: Creating .npmrc
|
- name: Creating .npmrc
|
||||||
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
||||||
run: |
|
run: |
|
||||||
cat << EOF > "$HOME/.npmrc"
|
cat << EOF > "$HOME/.npmrc"
|
||||||
//registry.npmjs.org/:_authToken=$NPM_TOKEN
|
//registry.npmjs.org/:_authToken=$NPM_TOKEN
|
||||||
|
@ -75,12 +77,16 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
- name: Release on @dev tag in npm
|
- name: Release on @dev tag in npm
|
||||||
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
||||||
run: npx changeset version --snapshot pr && pnpm publish --tag dev --no-git-checks
|
run: npx changeset version --snapshot pr && pnpm publish --tag dev --no-git-checks
|
||||||
# Store package.json version in env
|
# Store package.json version in env
|
||||||
- run: echo "PACKAGE_JSON=$(jq -c . < package.json)" >> $GITHUB_ENV
|
- run: echo "PACKAGE_JSON=$(jq -c . < package.json)" >> $GITHUB_ENV
|
||||||
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
||||||
- run: echo '${{ fromJson(env.PACKAGE_JSON).version }}'
|
- run: echo '${{ fromJson(env.PACKAGE_JSON).version }}'
|
||||||
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
||||||
# Post a comment with released snapshot
|
# Post a comment with released snapshot
|
||||||
- name: Create with released tag
|
- name: Create with released tag
|
||||||
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
||||||
uses: peter-evans/create-or-update-comment@v2
|
uses: peter-evans/create-or-update-comment@v2
|
||||||
with:
|
with:
|
||||||
issue-number: ${{ github.event.pull_request.number }}
|
issue-number: ${{ github.event.pull_request.number }}
|
||||||
|
|
Loading…
Reference in a new issue