Update Wing Docs #1847
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: Update Wing Docs | |
on: | |
workflow_dispatch: {} | |
jobs: | |
update_docs: | |
name: Update Wing Docs and Create Pull Request | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Login to private npm registry | |
env: | |
GITHUB_TOKEN: ${{ secrets.WING_GITHUB_TOKEN }} | |
run: npm config set @winglang:registry https://npm.pkg.github.com && npm set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN | |
- name: Install dependencies | |
run: npm install | |
- name: Update docs | |
run: npx tsx scripts/updateDocs.ts | |
env: | |
GITHUB_TOKEN: ${{ secrets.WING_GITHUB_TOKEN }} | |
- name: Update winglibs | |
run: npx tsx scripts/winglibDocs.ts | |
env: | |
GITHUB_TOKEN: ${{ secrets.WING_GITHUB_TOKEN }} | |
- name: Create Pull Request | |
id: create-pr | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.WING_GITHUB_TOKEN }} | |
commit-message: |- | |
feat(docs): update docs | |
Updates the Wing docs. See details in [workflow run]. | |
[Workflow Run]: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
------ | |
*Automatically created via the "update-docs" workflow* | |
branch: github-actions/update-docs | |
title: "feat(docs): update docs" | |
body: |- | |
feat(docs): update docs | |
Updates the Wing docs. See details in [workflow run]. | |
[Workflow Run]: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
------ | |
*Automatically created via the "update-docs" workflow* | |
author: monabot <[email protected]> | |
committer: monabot <[email protected]> | |
signoff: true | |
labels: documentation | |
delete-branch: true |