Skip to content

Commit d042508

Browse files
committed
fix: minor tweaks
1 parent 05e1b75 commit d042508

File tree

6 files changed

+34
-26
lines changed

6 files changed

+34
-26
lines changed

.github/workflows/onPushToMain.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ name: version, tag and github release
33

44
on:
55
push:
6-
branches: [main]
6+
branches:
7+
- main
8+
- prerelease/*
9+
tags-ignore:
10+
- '*'
711

812
jobs:
913
release:
1014
uses: salesforcecli/github-workflows/.github/workflows/githubRelease.yml@main
1115
secrets: inherit
12-
13-
# most repos won't use this
14-
# depends on previous job to avoid git collisions, not for any functionality reason
15-
# docs:
16-
# uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main
17-
# secrets: inherit
18-
# needs: release
16+
with:
17+
prerelease: ${{ github.ref_name != 'main' }}

.github/workflows/onRelease.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: publish
22

33
on:
44
release:
5-
types: [released]
5+
types: [published]
66
# support manual release in case something goes wrong and needs to be repeated or tested
77
workflow_dispatch:
88
inputs:
@@ -11,11 +11,22 @@ on:
1111
type: string
1212
required: true
1313
jobs:
14+
getDistTag:
15+
outputs:
16+
tag: ${{ steps.distTag.outputs.tag }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
ref: ${{ github.event.release.tag_name || inputs.tag }}
22+
- uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main
23+
id: distTag
1424
npm:
1525
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
26+
needs: [getDistTag]
1627
with:
1728
ctc: true
1829
sign: true
19-
tag: latest
30+
tag: ${{ needs.getDistTag.outputs.tag || 'latest' }}
2031
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
2132
secrets: inherit

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022, Salesforce.com, Inc.
1+
Copyright (c) 2023, Salesforce.com, Inc.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ This is an oclif plugin that supports the Salesforce Apex commands.
1313
Clone the project and `cd` into it:
1414

1515
```
16-
$ git clone [email protected]:forcedotcom/salesforcedx-apex.git
17-
$ cd salesforcedx-apex
16+
$ git clone [email protected]:salesforcecli/plugin-apex.git
17+
$ cd plugin-apex
1818
```
1919

2020
Ensure you have [Yarn](https://yarnpkg.com/) installed, then run:

package.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,25 @@
5858
"/lib",
5959
"/messages",
6060
"/npm-shrinkwrap.json",
61-
"/oclif.manifest.json",
62-
"yarn.lock"
61+
"/oclif.manifest.json"
6362
],
64-
"homepage": "https://github.com/forcedotcom/salesforcedx-apex",
63+
"homepage": "https://github.com/salesforcecli/plugin-apex",
6564
"keywords": [
6665
"force",
6766
"salesforce",
6867
"sfdx",
6968
"sfdx-plugin",
70-
"apex"
69+
"sf-plugin",
70+
"apex",
71+
"sf"
7172
],
7273
"license": "BSD-3-Clause",
7374
"oclif": {
7475
"commands": "./lib/commands",
76+
"additionalHelpFlags": [
77+
"-h"
78+
],
79+
"bin": "sfdx",
7580
"topics": {
7681
"force": {
7782
"external": true,
@@ -85,19 +90,12 @@
8590
},
8691
"test": {
8792
"description": "run Apex tests and retrieve test reports"
88-
},
89-
"class": {
90-
"external": true
91-
},
92-
"trigger": {
93-
"external": true
9493
}
9594
}
9695
}
9796
}
9897
}
9998
},
100-
"bin": "sfdx",
10199
"devPlugins": [
102100
"@oclif/plugin-help",
103101
"@oclif/plugin-command-snapshot",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./node_modules/@salesforce/dev-config/tsconfig",
2+
"extends": "@salesforce/dev-config/tsconfig",
33
"compilerOptions": {
44
"module": "commonjs",
55
"target": "es6",
@@ -17,5 +17,5 @@
1717
// from the tslib dependency, making our code more efficient
1818
"importHelpers": true
1919
},
20-
"include": ["./src/**/*"]
20+
"include": ["./src/**/*.ts"]
2121
}

0 commit comments

Comments
 (0)