-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d72e6a
commit c85979e
Showing
2 changed files
with
45 additions
and
58 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,4 @@ jobs: | |
run: | | ||
npm ci | ||
npm run build:clean | ||
npm run validate-exports | ||
npm run build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,44 @@ | ||
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 | ||
run: | | ||
npm install -g @vscode/vsce ovsx | ||
cd packages/langium-vscode | ||
PACKAGE_VERSION=`npm pkg get version --workspaces=false | tr -d \"` | ||
vsce package | ||
vsce publish -i langium-vscode-$PACKAGE_VERSION.vsix -p ${{ secrets.VSCE_TOKEN }} | ||
ovsx publish langium-vscode-$PACKAGE_VERSION.vsix -p ${{ secrets.OVSX_TOKEN }} | ||
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 build | ||
- 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=generator-nmfglsp | ||
- name: Publish VSCode Extension | ||
shell: bash | ||
run: | | ||
npm install -g @vscode/vsce ovsx | ||
cd packages/nmeta-vscode | ||
PACKAGE_VERSION=`npm pkg get version --workspaces=false | tr -d \"` | ||
vsce package | ||
vsce publish -i nmeta-vscode-$PACKAGE_VERSION.vsix -p ${{ secrets.VSCE_TOKEN }} | ||
ovsx publish nmeta-vscode-$PACKAGE_VERSION.vsix -p ${{ secrets.OVSX_TOKEN }} |