Skip to content

Commit

Permalink
chore: remove deprecated api_docs ci (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhat-ha authored Aug 23, 2024
1 parent ca965c4 commit 3090cb4
Showing 1 changed file with 1 addition and 56 deletions.
57 changes: 1 addition & 56 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,7 @@ jobs:
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_CI_TOKEN }}
- name: Release API docs
working-directory: packages/api-docs
run: |
npm run release $(node ./get_version.js) --ci --no-npm.publish && npm publish --access public
env:
CI: true
# Both tokens are present because publishing with
# release-it in GH actions seems to be broken
NODE_AUTH_TOKEN: ${{ secrets.NPM_CI_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_CI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get latest commit info
run: |
echo "::set-output name=TITLE::$(git show -1 --format='%s' -s)"
Expand Down Expand Up @@ -118,48 +108,3 @@ jobs:
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_CI_TOKEN }}

publish-api-docs:
if: github.event.inputs.package == 'webrtc-api-docs'

name: "@telnyx/webrtc-api-docs Publish release"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
# https://github.com/peter-evans/create-pull-request/issues/122
ref: "main"
# https://github.com/release-it/release-it/issues/657#issuecomment-647848200
fetch-depth: 0
token: ${{ secrets.DRAFT_RELEASE_TOKEN }}
- name: Setup Git user
# https://github.com/actions/checkout/issues/13
run: |
git config user.name TelnyxIntegrations
git config user.email [email protected]
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "yarn"
registry-url: https://registry.npmjs.org/
- name: Install shared dependencies
run: yarn install --immutable
- name: Install package dependencies
working-directory: packages/js
run: yarn install --immutable
- name: Release API docs
working-directory: packages/api-docs
run: |
yarn release $(node ./get_version.js) --ci --no-npm.publish
&& \
npm publish --access public
env:
CI: true
# Both tokens are present because publishing with
# release-it in GH actions seems to be broken
NODE_AUTH_TOKEN: ${{ secrets.NPM_CI_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_CI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3090cb4

Please sign in to comment.