-
Notifications
You must be signed in to change notification settings - Fork 34
55 lines (52 loc) · 1.6 KB
/
create-quantic-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
51
52
53
54
55
name: Create Quantic Package
on:
workflow_dispatch:
schedule:
- cron: '0 22 * * *'
defaults:
run:
shell: bash
jobs:
create-and-promote-quantic-package:
name: Create Quantic Package
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Check Out Repository
uses: actions/checkout@v3
- name: Create cache file
run: |
mkdir check-SHA
echo ${{ github.sha }} > github-sha.txt
- name: Check SHA
id: check_sha
uses: actions/cache@v1
with:
path: check-SHA
key: check-SHA-${{ github.sha }}
- name: Cancel current workflow run if no changes made
if: steps.check_sha.outputs.cache-hit == 'true'
uses: actions/github-script@v4
with:
script: |
github.actions.cancelWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId
})
- name: Setup
uses: ./.github/actions/setup
- name: Create package version
working-directory: ./packages/quantic
run: |
echo "${{ secrets.SFDX_AUTH_PACKAGE_JWT_KEY }}" > server.key
npx --no-install ts-node scripts/build/create-package.ts --remove-translations --ci
rm server.key
env:
SFDX_AUTH_JWT_USERNAME: [email protected]
SFDX_AUTH_JWT_KEY: server.key
SFDX_AUTH_CLIENT_ID: ${{ secrets.SFDX_AUTH_PACKAGE_CLIENT_ID }}