|
1 | 1 | name: NPM Publish |
2 | 2 |
|
3 | | -on: |
4 | | - release: |
5 | | - types: [published] |
6 | | - secrets: |
7 | | - NPM_TOKEN: |
8 | | - required: true |
| 3 | +# on: |
| 4 | +# release: |
| 5 | +# types: [published] |
| 6 | +# secrets: |
| 7 | +# NPM_TOKEN: |
| 8 | +# required: true |
9 | 9 |
|
10 | | -jobs: |
11 | | - publish: |
12 | | - if: github.repository_owner == 'viamrobotics' |
13 | | - runs-on: ubuntu-latest |
14 | | - container: |
15 | | - image: ghcr.io/viamrobotics/canon:amd64 |
| 10 | +# jobs: |
| 11 | +# publish: |
| 12 | +# if: github.repository_owner == 'viamrobotics' |
| 13 | +# runs-on: ubuntu-latest |
| 14 | +# container: |
| 15 | +# image: ghcr.io/viamrobotics/canon:amd64 |
16 | 16 |
|
17 | | - steps: |
18 | | - - name: Check if organization member |
19 | | - id: is_organization_member |
20 | | - if: github.event_name == 'workflow_dispatch' |
21 | | - uses: jamessingleton/[email protected] |
22 | | - with: |
23 | | - organization: viamrobotics |
24 | | - username: ${{ github.actor }} |
25 | | - token: ${{ secrets.GITHUB_TOKEN }} |
| 17 | +# steps: |
| 18 | +# - name: Check if organization member |
| 19 | +# id: is_organization_member |
| 20 | +# if: github.event_name == 'workflow_dispatch' |
| 21 | +# uses: jamessingleton/[email protected] |
| 22 | +# with: |
| 23 | +# organization: viamrobotics |
| 24 | +# username: ${{ github.actor }} |
| 25 | +# token: ${{ secrets.GITHUB_TOKEN }} |
26 | 26 |
|
27 | | - - name: Cancelling - not an organization member |
28 | | - |
29 | | - if: | |
30 | | - github.event_name == 'workflow_dispatch' && steps.is_organization_member.outputs.result == 'false' |
| 27 | +# - name: Cancelling - not an organization member |
| 28 | +# uses: andymckay/[email protected] |
| 29 | +# if: | |
| 30 | +# github.event_name == 'workflow_dispatch' && steps.is_organization_member.outputs.result == 'false' |
31 | 31 |
|
32 | | - - name: Download Release |
33 | | - uses: dsaltares/fetch-gh-release-asset@master |
34 | | - with: |
35 | | - file: "viamrobotics\\-sdk\\-.*\\.tgz" |
36 | | - regex: true |
37 | | - target: './' |
38 | | - version: tags/${{ github.event.release.tag_name }} |
| 32 | +# - name: Download Release |
| 33 | +# uses: dsaltares/fetch-gh-release-asset@master |
| 34 | +# with: |
| 35 | +# file: "viamrobotics\\-sdk\\-.*\\.tgz" |
| 36 | +# regex: true |
| 37 | +# target: './' |
| 38 | +# version: tags/${{ github.event.release.tag_name }} |
39 | 39 |
|
40 | | - - name: Check Files |
41 | | - id: release_file |
42 | | - run: echo "path=$(ls -1 | head -1)" >> $GITHUB_OUTPUT |
| 40 | +# - name: Check Files |
| 41 | +# id: release_file |
| 42 | +# run: echo "path=$(ls -1 | head -1)" >> $GITHUB_OUTPUT |
43 | 43 |
|
44 | | - - name: Which Tag |
45 | | - id: which_tag |
46 | | - shell: bash |
47 | | - run: | |
48 | | - if ${{ contains(github.event.release.tag_name, 'rc') }} ; then |
49 | | - echo "tag=rc" >> $GITHUB_OUTPUT |
50 | | - else |
51 | | - echo "tag=latest" >> $GITHUB_OUTPUT |
52 | | - fi |
| 44 | +# - name: Which Tag |
| 45 | +# id: which_tag |
| 46 | +# shell: bash |
| 47 | +# run: | |
| 48 | +# if ${{ contains(github.event.release.tag_name, 'rc') }} ; then |
| 49 | +# echo "tag=rc" >> $GITHUB_OUTPUT |
| 50 | +# else |
| 51 | +# echo "tag=latest" >> $GITHUB_OUTPUT |
| 52 | +# fi |
53 | 53 |
|
54 | | - - name: Publish |
55 | | - id: publish |
56 | | - uses: JS-DevTools/npm-publish@v2 |
57 | | - with: |
58 | | - token: ${{ secrets.NPM_TOKEN }} |
59 | | - tag: ${{ steps.which_tag.outputs.tag }} |
60 | | - package: ${{ steps.release_file.outputs.path }} |
| 54 | +# - name: Publish |
| 55 | +# id: publish |
| 56 | +# uses: JS-DevTools/npm-publish@v2 |
| 57 | +# with: |
| 58 | +# token: ${{ secrets.NPM_TOKEN }} |
| 59 | +# tag: ${{ steps.which_tag.outputs.tag }} |
| 60 | +# package: ${{ steps.release_file.outputs.path }} |
61 | 61 |
|
62 | | - - name: Notify Slack |
63 | | - |
64 | | - if: ${{ steps.publish.outputs.tag == 'latest' }} |
65 | | - with: |
66 | | - payload: | |
67 | | - { |
68 | | - "text": "${{ github.event.release.tag_name }} was released.\n${{ github.event.release.html_url }}" |
69 | | - } |
70 | | - env: |
71 | | - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
| 62 | +# - name: Notify Slack |
| 63 | +# uses: slackapi/[email protected] |
| 64 | +# if: ${{ steps.publish.outputs.tag == 'latest' }} |
| 65 | +# with: |
| 66 | +# payload: | |
| 67 | +# { |
| 68 | +# "text": "${{ github.event.release.tag_name }} was released.\n${{ github.event.release.html_url }}" |
| 69 | +# } |
| 70 | +# env: |
| 71 | +# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
0 commit comments