Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
chore(gha): fix release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiand391 committed Dec 13, 2022
1 parent da43f48 commit 7c911cd
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 27 deletions.
1 change: 0 additions & 1 deletion .github/workflows/manualRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
with:
git-user-name: Cristian Dominguez
github-token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
output-file: false
# always do the release, even if there are no semantic commits
skip-on-empty: false
tag-prefix: ''
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/onPushToMain.yml

This file was deleted.

27 changes: 21 additions & 6 deletions .github/workflows/onRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,24 @@ on:
type: string
required: true
jobs:
npm:
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
with:
tag: latest
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
secrets: inherit
npm-publish:
runs-on: ubuntu-latest
steps:
- name: Release
uses: actions/checkout@v3
with:
ref: ${{ inputs.githubTag }}
- uses: actions/setup-node@v3
with:
node-version: ${{ inputs.nodeVersion }}
cache: yarn
- run: yarn install --network-timeout 600000
- run: yarn build
- run: npm install --global @salesforce/[email protected]
- run: |
sf-release npm:package:release \
--githubtag ${{ github.event.release.tag_name || inputs.tag || 'latest' }} \
--npmtag ${{ inputs.tag || 'latest' }}
--no-install
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cristiand391/sf-plugin-api",
"description": "A Salesforce CLI plugin to interact with the Salesforce APIs.",
"version": "0.1.0",
"version": "0.0.1",
"author": {
"name": "Cristian Dominguez",
"url": "https://github.com/cristiand391"
Expand Down Expand Up @@ -95,4 +95,4 @@
"publishConfig": {
"access": "public"
}
}
}

0 comments on commit 7c911cd

Please sign in to comment.