Skip to content

Commit

Permalink
Merge pull request #94 from amtrack/fix/update-deps
Browse files Browse the repository at this point in the history
fix: update dependencies and publish as ESM
  • Loading branch information
amtrack authored Oct 25, 2024
2 parents f7d505a + c853cf6 commit 58bb56b
Show file tree
Hide file tree
Showing 16 changed files with 15,471 additions and 6,288 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
- name: Install dependencies
run: |
yarn install
yarn global add @salesforce/cli
npm ci
npm install --global @salesforce/cli
- name: Run tests
run: yarn run test
run: npm run test
- name: Run E2E tests
env:
SFDX_AUTH_URL_DEVHUB: ${{ secrets.SFDX_AUTH_URL_DEVHUB }}
run: |
sf org login sfdx-url -d -a devhub -f <(echo "${SFDX_AUTH_URL_DEVHUB}")
sf org create scratch -f config/project-scratch-def.json -d
yarn run test:e2e
echo "${SFDX_AUTH_URL_DEVHUB}" | sf org login sfdx-url --set-default-dev-hub --alias devhub --sfdx-url-stdin
sf org create scratch -f config/project-scratch-def.json --set-default
npm run test:e2e
- name: Delete scratch org
if: always()
run: |
sf org delete scratch -p
sf org delete scratch --no-prompt
- name: Release package
run: npx semantic-release
env:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/.nyc_output
/dist
/lib
/package-lock.json
/tmp
node_modules/
.sfdx/
Expand Down
11 changes: 6 additions & 5 deletions bin/run
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env node

const oclif = require("@oclif/core");
// eslint-disable-next-line node/shebang
async function main() {
const { execute } = await import("@oclif/core");
await execute({ dir: import.meta.url });
}

oclif
.run()
.then(require("@oclif/core/flush"))
.catch(require("@oclif/core/handle"));
await main();
6 changes: 1 addition & 5 deletions config/project-scratch-def.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@
"edition": "Developer",
"language": "en_US",
"features": [],
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
}
}
"settings": {}
}
Loading

0 comments on commit 58bb56b

Please sign in to comment.