Skip to content

Commit

Permalink
Merge pull request #15 from k-capehart/workflow-updates
Browse files Browse the repository at this point in the history
chore: test publishing package
  • Loading branch information
k-capehart authored May 22, 2024
2 parents 66e5692 + 746ef06 commit 6f448a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/onRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --provenance --access public
always-auth: true
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
"name": "kc-sf-plugin",
"description": "Various commands for enabling salesforce development with the sf cli",
"version": "1.1.0",
"publishConfig": {
"registry": "https://npm.pkg.github.com",
"access": "public"
},
"main": "src/index.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/k-capehart/kc-sf-plugin.git"
},
"bugs": {
"url": "https://github.com/k-capehart/kc-sf-plugin/issues"
},
"homepage": "https://github.com/k-capehart/kc-sf-plugin#readme",
"dependencies": {
"@oclif/core": "^3.26.2",
"@salesforce/core": "^7.3.8",
Expand Down Expand Up @@ -72,9 +85,6 @@
"test:only": "wireit",
"version": "oclif readme"
},
"publishConfig": {
"access": "public"
},
"wireit": {
"build": {
"dependencies": [
Expand Down

0 comments on commit 6f448a9

Please sign in to comment.