Add temporary code #1
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 `next` | |
permissions: | |
id-token: write | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'lotes/next-releases' | |
jobs: | |
publish: | |
name: Typir Publish `next` | |
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: Version as `next` packages | |
shell: bash | |
run: | | |
npm run version:next --workspace=typir | |
npm run version:next --workspace=typir-langium | |
npm run version:dependencies | |
- name: Publish NPM Packages | |
shell: bash | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
npm run publish:next --provenance --workspace=typir | |
npm run publish:next --provenance --workspace=typir-langium |