Skip to content

Commit

Permalink
fix github actions (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
georghinkel committed Jun 13, 2024
1 parent 1d72e6a commit c85979e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
run: |
npm ci
npm run build:clean
npm run validate-exports
npm run build
101 changes: 44 additions & 57 deletions .github/workflows/publish.yml
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 }}

0 comments on commit c85979e

Please sign in to comment.