Skip to content

Commit 745cb85

Browse files
committed
chore: enable publish
1 parent 39af245 commit 745cb85

File tree

1 file changed

+32
-36
lines changed

1 file changed

+32
-36
lines changed

.github/workflows/onRelease.yml

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,32 @@
1-
# DO NOT PUBLISH TO NPM
2-
# DISABLED UNTIL AUTH IS SORTED
3-
4-
# name: publish
5-
# on:
6-
# release:
7-
# # both release and prereleases
8-
# types: [published]
9-
# # support manual release in case something goes wrong and needs to be repeated or tested
10-
# workflow_dispatch:
11-
# inputs:
12-
# tag:
13-
# description: github tag that needs to publish
14-
# type: string
15-
# required: true
16-
# jobs:
17-
# getDistTag:
18-
# outputs:
19-
# tag: ${{ steps.distTag.outputs.tag }}
20-
# runs-on: ubuntu-latest
21-
# steps:
22-
# - uses: actions/checkout@v4
23-
# with:
24-
# ref: ${{ github.event.release.tag_name || inputs.tag }}
25-
# - uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main
26-
# id: distTag
27-
# npm:
28-
# uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
29-
# needs: [getDistTag]
30-
# with:
31-
# ctc: false
32-
# sign: false
33-
# tag: ${{ needs.getDistTag.outputs.tag || 'latest' }}
34-
# githubTag: ${{ github.event.release.tag_name || inputs.tag }}
35-
36-
# secrets: inherit
1+
name: publish
2+
on:
3+
release:
4+
# both release and prereleases
5+
types: [published]
6+
# support manual release in case something goes wrong and needs to be repeated or tested
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: github tag that needs to publish
11+
type: string
12+
required: true
13+
jobs:
14+
getDistTag:
15+
outputs:
16+
tag: ${{ steps.distTag.outputs.tag }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.event.release.tag_name || inputs.tag }}
22+
- uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main
23+
id: distTag
24+
npm:
25+
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
26+
needs: [getDistTag]
27+
with:
28+
ctc: false
29+
sign: false
30+
tag: ${{ needs.getDistTag.outputs.tag || 'latest' }}
31+
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
32+
secrets: inherit

0 commit comments

Comments
 (0)