v3.2.0 #10
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: Langium 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 build:clean | |
npm run langium:generate:production --workspace=langium | |
npm run build | |
- name: Test | |
if: success() || failure() | |
shell: bash | |
run: | | |
npm run test | |
- 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=langium | |
npm run publish:latest --provenance --workspace=langium-railroad | |
npm run publish:latest --provenance --workspace=langium-cli | |
npm run publish:latest --provenance --workspace=langium-sprotty | |
npm run publish:latest --provenance --workspace=generator-langium | |
npm run publish:latest --provenance --workspace=langium-arithmetics-dsl | |
npm run publish:latest --provenance --workspace=langium-domainmodel-dsl | |
npm run publish:latest --provenance --workspace=langium-statemachine-dsl | |
- name: Publish VSCode Extension | |
shell: bash | |
# Add this line to the publishing once we have a valid VSCE token available again | |
# vsce publish -i langium-vscode-$PACKAGE_VERSION.vsix -p ${{ secrets.VSCE_TOKEN }} | |
run: | | |
npm install -g @vscode/vsce ovsx | |
cd packages/langium-vscode | |
PACKAGE_VERSION=`npm pkg get version --workspaces=false | tr -d \"` | |
vsce package | |
ovsx publish langium-vscode-$PACKAGE_VERSION.vsix -p ${{ secrets.OVSX_TOKEN }} |