fix: upgrade tslib from 2.8.0 to 2.8.1 (#168) #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: { push: { branches: [master] } } | |
jobs: | |
detect-publish: | |
runs-on: ubuntu-latest | |
outputs: | |
publish: ${{ steps.detect-publish.outputs.publish }} | |
steps: | |
- uses: actions/checkout@v2 | |
- id: detect-publish | |
run: | | |
result=$(./scripts/detect_publish.sh) | |
echo $result | |
echo ::set-output name=publish::$result | |
publish: | |
runs-on: ubuntu-latest | |
needs: [detect-publish] | |
if: needs.detect-publish.outputs.publish == 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18.x | |
registry-url: https://registry.npmjs.org | |
scope: '@vertexvis' | |
- name: Publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REPOSITORY: ${{ github.repository }} | |
run: | | |
yarn install --frozen-lockfile | |
./scripts/publish.sh | |
docs: | |
runs-on: ubuntu-latest | |
needs: [publish] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18.x | |
registry-url: https://registry.npmjs.org | |
scope: '@vertexvis' | |
- name: Deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
yarn install --frozen-lockfile | |
yarn generate:docs | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add docs/ | |
git commit -m "New docs" | |
git push -f origin HEAD:gh-pages |