Added support for inline quotes, link flags and block frame. #12
This file contains hidden or 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 | |
| permissions: | |
| contents: write | |
| id-token: write | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - master-* | |
| jobs: | |
| publish: | |
| name: Publish package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| registry-url: https://registry.npmjs.org | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Configure Git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Determine Version Type | |
| id: version-type | |
| uses: actions/github-script@v7 | |
| with: | |
| result-encoding: string | |
| script: | | |
| const ref = process.env.GITHUB_REF_NAME; | |
| return ref == "master" ? "beta" : ref == "master-2" ? "alpha" : "latest"; | |
| - name: Bump version | |
| run: | | |
| if [ "${{ steps.version-type.outputs.result }}" = "latest" ]; then | |
| npm version minor; | |
| else | |
| npm version prerelease --preid=${{ steps.version-type.outputs.result }}; | |
| fi | |
| - name: Push bumped version | |
| run: git push --follow-tags | |
| - name: Build package | |
| run: npm run build | |
| - name: Publish package | |
| run: npm publish --access public --provenance --tag ${{ steps.version-type.outputs.result }} |