-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (46 loc) · 1.98 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Workflow that creates artifacts of the latest dev versions.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: package
on:
push:
branches: [main]
jobs:
package:
name: Package applications
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/setup-node@v2
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
scope: '@kieler'
- run: yarn
- run: yarn package
- name: Publish next klighd-interactive
if: github.repository == 'kieler/klighd-vscode' # only publish next version on the main repo
run: yarn publish:next
working-directory: ./packages/klighd-interactive
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish next klighd-core
if: github.repository == 'kieler/klighd-vscode' # only publish next version on the main repo
run: yarn publish:next
working-directory: ./packages/klighd-core
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# Artifacts have a few limitation and will always be zips. See: https://github.com/actions/upload-artifact#zipped-artifact-downloads
- uses: actions/upload-artifact@v4
with:
name: klighd-cli
path: applications/klighd-cli/bin
if-no-files-found: error
- uses: actions/upload-artifact@v4
with:
name: klighd-vsix
path: applications/klighd-vscode/klighd-vscode.vsix
if-no-files-found: error