Skip to content

Commit

Permalink
feat: generate-from-ts (#85)
Browse files Browse the repository at this point in the history
* feat: generate project from ts

* fix: tests pass, build step has a command

* feat: ts output to lib

* style: formatter?

* ci: sync CI with current for prerel capability

* fix: add deprecated ppds

* ci: ut can run on windows

* refactor: exported type for "packaged packageDir"

* refactor: tsconfig, types based on qa use

* chore: style
  • Loading branch information
mshanemc authored May 14, 2024
1 parent ab38409 commit 91c169c
Show file tree
Hide file tree
Showing 18 changed files with 2,126 additions and 975 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: create-github-release

on:
push:
branches:
- main
- prerelease/**
tags-ignore:
- "*"
workflow_dispatch:
inputs:
prerelease:
type: string
description: "Name to use for the prerelease: beta, dev, etc. NOTE: If this is already set in the package.json, it does not need to be passed in here."

jobs:
release:
uses: salesforcecli/github-workflows/.github/workflows/create-github-release.yml@main
with:
prerelease: ${{ inputs.prerelease }}
# If this is a push event, we want to skip the release if there are no semantic commits
# However, if this is a manual release (workflow_dispatch), then we want to disable skip-on-empty
# This helps recover from forgetting to add semantic commits ('fix:', 'feat:', etc.)
skip-on-empty: ${{ github.event_name == 'push' }}
secrets:
SVC_CLI_BOT_GITHUB_TOKEN: ${{ secrets.IDEE_GH_TOKEN }}
# docs:
# # Most repos won't use this
# # Depends on the 'release' job to avoid git collisions, not for any functionality reason
# needs: release
# secrets: inherit
# if: ${{ github.ref_name == 'main' }}
# uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main
36 changes: 0 additions & 36 deletions .github/workflows/manualRelease.yml

This file was deleted.

11 changes: 0 additions & 11 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
@@ -1,18 +1,33 @@
# when a github release happens, publish an npm package,
name: publish
on:
release:
types: [released]
# support manual release
# both release and prereleases
types: [published]
# support manual release in case something goes wrong and needs to be repeated or tested
workflow_dispatch:
inputs:
tag:
description: tag that needs to publish
description: github tag that needs to publish
type: string
required: true
jobs:
getDistTag:
outputs:
tag: ${{ steps.distTag.outputs.tag }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name || inputs.tag }}
- uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main
id: distTag
npm:
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
needs: [getDistTag]
with:
ctc: false
ctc: true
sign: true
tag: ${{ needs.getDistTag.outputs.tag || 'latest' }}
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
secrets: inherit

secrets: inherit
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Salesforce cache
.sfdx
.sf

# Logs
logs
Expand Down Expand Up @@ -30,3 +31,6 @@ jspm_packages/

# MacOS folder atttribute tracking
**/.DS_Store

# typescript output
lib
Loading

0 comments on commit 91c169c

Please sign in to comment.