Skip to content

Commit

Permalink
fix: trigger docs tests only on releases (#543)
Browse files Browse the repository at this point in the history
* fix: trigger docs tests only on releases

* chore: switch CI steps around
  • Loading branch information
ntn-x2 authored Jun 1, 2022
1 parent 1309159 commit 100b2bb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/devpackpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,3 @@ jobs:
git add .
git commit -m "[CI Skip] ci: publish prerelease" -n
git push
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: KILTProtocol/docs
event-type: sdk-update
client-payload: '{"latestTag": "${{ steps.package_version.outputs.package_version }}"}'

10 changes: 10 additions & 0 deletions .github/workflows/npmpublish-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@ jobs:
run: yarn run build
- name: Bundle library
run: yarn run bundle
- name: Get current package version
id: package_version
run: echo "::set-output name=package_version::$(node -pe "require('./package.json').version")"
- name: Publish to NPM
run: yarn run publish --tag rc
env:
YARN_NPM_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: KILTProtocol/docs
event-type: sdk-update
client-payload: '{"latestTag": "${{ steps.package_version.outputs.package_version }}"}'
10 changes: 10 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@ jobs:
run: yarn run build
- name: Bundle library
run: yarn run bundle
- name: Get current package version
id: package_version
run: echo "::set-output name=package_version::$(node -pe "require('./package.json').version")"
- name: Publish to NPM
run: yarn run publish --tag latest
env:
YARN_NPM_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: KILTProtocol/docs
event-type: sdk-update
client-payload: '{"latestTag": "${{ steps.package_version.outputs.package_version }}"}'

0 comments on commit 100b2bb

Please sign in to comment.