Publish lang-dot #5
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 lang-dot | |
on: workflow_dispatch | |
jobs: | |
build: | |
uses: ./.github/workflows/lang-dot-build.yml | |
publish: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: dist | |
path: packages/lang-dot/dist | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
registry-url: "https://registry.npmjs.org" | |
- name: "Collect release info" | |
run: | | |
node scripts/collect-release-info.js packages/lang-dot >> "$GITHUB_ENV" | |
- name: "Create GitHub release" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
echo "$RELEASE_NOTES" > "${{ runner.temp }}/notes.md" | |
gh release create $RELEASE_TAG --notes-file "${{ runner.temp }}/notes.md" --title "$RELEASE_TITLE" | |
- run: npm install -g npm | |
- run: npm publish --provenance --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
working-directory: packages/lang-dot |