Skip to content

Commit 619da55

Browse files
[PETOSS-829] Update installation process and paths
1 parent 3f39109 commit 619da55

2 files changed

Lines changed: 19 additions & 23 deletions

File tree

.github/workflows/create-github-pr.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ jobs:
1717
with:
1818
ref: 'master'
1919

20-
- name: Install octokit dependencies
21-
run: npm i
22-
working-directory: ${{ github.workspace }}/.github/octokit
23-
20+
- name: Install get-access-token dependencies
21+
run: npm ci
22+
working-directory: ${{ github.workspace }}/.github/get-access-token
23+
2424
- name: Get github app access token
2525
id: get_access_token
2626
env:
27-
GITHUB_APP_ID: ${{ secrets.XERO_PUBLIC_BOT_APP_ID }}
28-
GITHUB_APP_PRIVATE_KEY: ${{ secrets.XERO_PUBLIC_BOT_KEY }}
27+
GITHUB_APP_ID: ${{ secrets.XERO_GITHUB_APP_ID }}
28+
GITHUB_APP_PRIVATE_KEY: ${{ secrets.XERO_GITHUB_APPLICATION_KEY }}
2929
uses: actions/github-script@v7
3030
with:
3131
result-encoding: string
3232
script: |
33-
const { getAccessToken } = await import('${{ github.workspace }}/.github/octokit/index.js')
33+
const { getAccessToken } = await import('${{ github.workspace }}/.github/get-access-token/index.js')
3434
const token = await getAccessToken()
3535
return token
3636

.github/workflows/create-github-release.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,20 @@ jobs:
1212
pull-requests: write
1313

1414
steps:
15-
16-
- name: Checkout Repository
17-
uses: actions/checkout@v4
18-
with:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
17+
with:
1918
fetch-depth: 0
2019

21-
- name: Set up Node environment
22-
uses: actions/setup-node@v4
23-
with:
20+
- name: Set up Node environment
21+
uses: actions/setup-node@v4
22+
with:
2423
node-version: 20
2524

26-
- name: install node package
27-
run: npm i
28-
working-directory: ${{ github.workspace }}/.github/semantic-release
25+
- name: Install semantic-release dependencies
26+
run: npm ci
27+
working-directory: ${{ github.workspace }}/.github/semantic-release
2928

30-
- name: Perform release
31-
run: |
32-
npx semantic-release
33-
env:
34-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
35-
working-directory: ${{ github.workspace }}/.github/semantic-release
29+
- name: Perform release
30+
run: npx semantic-release --dry-run
31+
working-directory: ${{ github.workspace }}/.github/semantic-release

0 commit comments

Comments
 (0)