Skip to content

Commit 907bb58

Browse files
authored
Merge pull request #156 from forcedotcom/ew/gha
Updates GHAs to align closer to the most recent versions
2 parents fc5fb2d + 814e503 commit 907bb58

9 files changed

+30
-80
lines changed

.github/workflows/failureNotifications.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- name: Announce Failure
1515
id: slack
16-
uses: slackapi/slack-github-action@v1.24.0
16+
uses: slackapi/slack-github-action@v1.26.0
1717
env:
1818
# for non-CLI-team-owned plugins, you can send this anywhere you like
1919
SLACK_WEBHOOK_URL: ${{ secrets.IDEE_RELEASE_ALERT_SLACK_WEBHOOK }}

.github/workflows/manualRelease.yml

-36
This file was deleted.

.github/workflows/notify-slack-on-pr-open.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- name: Notify Slack on PR open
1212
env:
13-
WEBHOOK_URL: ${{ secrets.CLI_TEAM_SLACK_WEBHOOK_URL }}
13+
WEBHOOK_URL: ${{ secrets.IDEE_RELEASE_ALERT_SLACK_WEBHOOK }}
1414
PULL_REQUEST_AUTHOR_ICON_URL: ${{ github.event.pull_request.user.avatar_url }}
1515
PULL_REQUEST_AUTHOR_NAME: ${{ github.event.pull_request.user.login }}
1616
PULL_REQUEST_AUTHOR_PROFILE_URL: ${{ github.event.pull_request.user.html_url }}

.github/workflows/onPushToMain.yml

-11
This file was deleted.

.github/workflows/onRelease.yml

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,33 @@
11
# when a github release happens, publish an npm package,
2+
name: publish
23
on:
34
release:
4-
types: [released]
5-
# support manual release
5+
# both release and prereleases
6+
types: [published]
7+
# support manual release in case something goes wrong and needs to be repeated or tested
68
workflow_dispatch:
79
inputs:
810
tag:
9-
description: tag that needs to publish
11+
description: github tag that needs to publish
1012
type: string
1113
required: true
1214
jobs:
15+
getDistTag:
16+
outputs:
17+
tag: ${{ steps.distTag.outputs.tag }}
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
ref: ${{ github.event.release.tag_name || inputs.tag }}
23+
- uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main
24+
id: distTag
1325
npm:
1426
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
27+
needs: [getDistTag]
1528
with:
1629
ctc: false
30+
tag: ${{ needs.getDistTag.outputs.tag || 'latest' }}
1731
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
18-
secrets: inherit
32+
33+
secrets: inherit

.github/workflows/test.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ on:
77
jobs:
88
yarn-lockfile-check:
99
uses: salesforcecli/github-workflows/.github/workflows/lockFileCheck.yml@main
10-
# Since the Windows unit tests take much longer, we run the linux unit tests first and then run the windows unit tests in parallel with NUTs
1110
linux-unit-tests:
1211
needs: yarn-lockfile-check
1312
uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main
1413
windows-unit-tests:
15-
needs: linux-unit-tests
14+
needs: yarn-lockfile-check
1615
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
1716

1817
# Uncomment to enable NUT testing in Github Actions

.github/workflows/testCommitExceptMain.yml

-8
This file was deleted.

.github/workflows/validate-pr.yml

+8
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ on:
99
jobs:
1010
pr-validation:
1111
uses: salesforcecli/github-workflows/.github/workflows/validatePR.yml@main
12+
format-check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install modules
17+
run: yarn
18+
- name: Check Format
19+
run: yarn format:check

.github/workflows/validatePR.yml

-17
This file was deleted.

0 commit comments

Comments
 (0)