Skip to content

Commit

Permalink
build: switch to release please
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarvin8 committed Aug 5, 2024
1 parent 2f113ba commit 63e7ab5
Show file tree
Hide file tree
Showing 7 changed files with 358 additions and 3,575 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/non-release-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Build - Non-Release

on:
push:
branches-ignore:
- main

jobs:
build:
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
32 changes: 24 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,48 @@ on:
push:
branches:
- main
- beta
permissions:
contents: write
pull-requests: write

jobs:
build:
uses: ./.github/workflows/reusable-build.yml
secrets: inherit

release:
needs: [build]
name: Release
runs-on: ubuntu-latest
steps:
- name: Release Please
id: release
uses: googleapis/release-please-action@v4
with:
release-type: node

- name: Checkout
uses: actions/checkout@v4.1.1
if: ${{ steps.release.outputs.release_created == 'true' }}

- name: Setup Node
uses: actions/setup-node@v4.0.1
with:
node-version: 18
cache: yarn
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created == 'true' }}

- name: Install Dependencies
run: yarn install
if: ${{ steps.release.outputs.release_created == 'true' }}

- name: Build
run: yarn build
if: ${{ steps.release.outputs.release_created == 'true' }}

- name: Test
run: yarn test

- name: Release
- name: Publish to NPM
run: npm publish --access public --tag latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created == 'true' }}
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Build
on:
push:
branches-ignore:
- main
- beta
workflow_call:

jobs:
build:
Expand Down
28 changes: 0 additions & 28 deletions .releaserc.json

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<!-- markdownlint-disable MD024 MD025 -->
<!-- markdown-link-check-disable -->

# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.0.11](https://github.com/mcarvin8/apex-tests-git-delta/compare/v1.0.10...v1.0.11) (2024-04-23)

### Bug Fixes
Expand Down
7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,9 @@
"@oclif/plugin-command-snapshot": "^5.0.2",
"@salesforce/cli-plugins-testkit": "^5.1.7",
"@salesforce/dev-scripts": "^8.3.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^9.2.6",
"@semantic-release/npm": "^11.0.2",
"@semantic-release/release-notes-generator": "^12.1.0",
"eslint-plugin-sf-plugin": "^1.17.2",
"husky": "^9.0.6",
"oclif": "^4.3.4",
"semantic-release": "^17.4.7",
"shx": "0.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
Expand Down
Loading

0 comments on commit 63e7ab5

Please sign in to comment.