Typir v0.1.1 #3
Workflow file for this run
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 | |
permissions: | |
id-token: write | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
name: Typir Publish | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Build | |
shell: bash | |
run: | | |
npm ci | |
npm run clean | |
npm run build | |
- name: Test | |
if: success() || failure() | |
shell: bash | |
run: | | |
npm run test:run | |
- name: Publish NPM Packages | |
shell: bash | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# Update the following list when a new npm package is added | |
run: | | |
npm run publish:latest --provenance --workspace=typir | |
npm run publish:latest --provenance --workspace=typir-langium |