Skip to content

Commit 00af117

Browse files
author
sangeet-joy_xero
committed
testing
1 parent 1d53d58 commit 00af117

File tree

1 file changed

+74
-73
lines changed

1 file changed

+74
-73
lines changed

.github/workflows/publish.yml

Lines changed: 74 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,41 @@ jobs:
2222
repository: XeroAPI/xero-node
2323
path: xero-node
2424

25-
- name: Set up Node environment
26-
uses: actions/setup-node@v4
27-
with:
28-
node-version: 20
29-
cache: 'npm'
30-
cache-dependency-path: '**/package-lock.json'
31-
registry-url: 'https://registry.npmjs.org'
25+
# - name: Set up Node environment
26+
# uses: actions/setup-node@v4
27+
# with:
28+
# node-version: 20
29+
# cache: 'npm'
30+
# cache-dependency-path: '**/package-lock.json'
31+
# registry-url: 'https://registry.npmjs.org'
3232

33-
- name: Install dependencies
34-
run: npm ci
35-
working-directory: xero-node
33+
# - name: Install dependencies
34+
# run: npm ci
35+
# working-directory: xero-node
3636

37-
- name: Run Build
38-
run: npm run build
39-
working-directory: xero-node
37+
# - name: Run Build
38+
# run: npm run build
39+
# working-directory: xero-node
4040

41-
- name: Fetch Latest release number
42-
id: get_latest_release_number
43-
run: |
44-
latest_version=$(gh release view --json tagName --jq '.tagName')
45-
echo "Latest release version is - $latest_version"
46-
echo "::set-output name=release_tag::$latest_version"
47-
working-directory: xero-node
48-
env:
49-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
41+
# - name: Fetch Latest release number
42+
# id: get_latest_release_number
43+
# run: |
44+
# latest_version=$(gh release view --json tagName --jq '.tagName')
45+
# echo "Latest release version is - $latest_version"
46+
# echo "::set-output name=release_tag::$latest_version"
47+
# working-directory: xero-node
48+
# env:
49+
# GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
5050

51-
- name: Publish to npm
52-
env:
53-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
54-
run: npm publish
55-
working-directory: xero-node
51+
# - name: Publish to npm
52+
# env:
53+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
54+
# run: npm publish
55+
# working-directory: xero-node
5656

5757
notify-codegen-repo:
5858
needs: publish
59+
if: always()
5960
runs-on: ubuntu-latest
6061
permissions:
6162
contents: write
@@ -104,52 +105,52 @@ jobs:
104105
}
105106
}'
106107
107-
notify-slack-on-success:
108-
runs-on: ubuntu-latest
109-
needs: publish
110-
permissions:
111-
contents: read
112-
if: success()
113-
steps:
114-
- name: Checkout xero-node repo
115-
uses: actions/checkout@v4
116-
with:
117-
repository: XeroAPI/xero-node
118-
path: xero-node
108+
# notify-slack-on-success:
109+
# runs-on: ubuntu-latest
110+
# needs: publish
111+
# permissions:
112+
# contents: read
113+
# if: success()
114+
# steps:
115+
# - name: Checkout xero-node repo
116+
# uses: actions/checkout@v4
117+
# with:
118+
# repository: XeroAPI/xero-node
119+
# path: xero-node
119120

120-
- name: Send slack notification on success
121-
uses: ./xero-node/.github/actions/notify-slack
122-
with:
123-
heading_text: "Publish job has succeeded !"
124-
alert_type: "thumbsup"
125-
job_status: "Success"
126-
XERO_SLACK_WEBHOOK_URL: ${{secrets.XERO_SLACK_WEBHOOK_URL}}
127-
job_url: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
128-
button_type: "primary"
129-
package_version: ${{needs.publish.outputs.release_number}}
130-
repo_link: ${{github.server_url}}/${{github.repository}}
121+
# - name: Send slack notification on success
122+
# uses: ./xero-node/.github/actions/notify-slack
123+
# with:
124+
# heading_text: "Publish job has succeeded !"
125+
# alert_type: "thumbsup"
126+
# job_status: "Success"
127+
# XERO_SLACK_WEBHOOK_URL: ${{secrets.XERO_SLACK_WEBHOOK_URL}}
128+
# job_url: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
129+
# button_type: "primary"
130+
# package_version: ${{needs.publish.outputs.release_number}}
131+
# repo_link: ${{github.server_url}}/${{github.repository}}
131132

132-
notify-slack-on-failure:
133-
runs-on: ubuntu-latest
134-
needs: publish
135-
permissions:
136-
contents: read
137-
if: failure()
138-
steps:
139-
- name: Checkout xero-node repo
140-
uses: actions/checkout@v4
141-
with:
142-
repository: XeroAPI/xero-node
143-
path: xero-node
133+
# notify-slack-on-failure:
134+
# runs-on: ubuntu-latest
135+
# needs: publish
136+
# permissions:
137+
# contents: read
138+
# if: failure()
139+
# steps:
140+
# - name: Checkout xero-node repo
141+
# uses: actions/checkout@v4
142+
# with:
143+
# repository: XeroAPI/xero-node
144+
# path: xero-node
144145

145-
- name: Send slack notification on failure
146-
uses: ./xero-node/.github/actions/notify-slack
147-
with:
148-
heading_text: "Publish job has failed !"
149-
alert_type: "alert"
150-
job_status: "Failed"
151-
XERO_SLACK_WEBHOOK_URL: ${{secrets.XERO_SLACK_WEBHOOK_URL}}
152-
job_url: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
153-
button_type: "danger"
154-
package_version: ${{needs.publish.outputs.release_number}}
155-
repo_link: ${{github.server_url}}/${{github.repository}}
146+
# - name: Send slack notification on failure
147+
# uses: ./xero-node/.github/actions/notify-slack
148+
# with:
149+
# heading_text: "Publish job has failed !"
150+
# alert_type: "alert"
151+
# job_status: "Failed"
152+
# XERO_SLACK_WEBHOOK_URL: ${{secrets.XERO_SLACK_WEBHOOK_URL}}
153+
# job_url: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
154+
# button_type: "danger"
155+
# package_version: ${{needs.publish.outputs.release_number}}
156+
# repo_link: ${{github.server_url}}/${{github.repository}}

0 commit comments

Comments
 (0)