generated from AllanOricil/js-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
116 additions
and
3,070 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,40 +3,53 @@ on: | |
push: | ||
branches: | ||
- main | ||
- beta | ||
|
||
workflow_dispatch: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: pnpm/[email protected] | ||
- name: Release Please | ||
id: release | ||
uses: googleapis/release-please-action@v4 | ||
with: | ||
release-type: node | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
if: ${{ steps.release.outputs.release_created == 'true' }} | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
if: ${{ steps.release.outputs.release_created == 'true' }} | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18 | ||
cache: pnpm | ||
registry-url: "https://registry.npmjs.org" | ||
if: ${{ steps.release.outputs.release_created == 'true' }} | ||
|
||
- name: Install Dependencies | ||
run: pnpm install | ||
if: ${{ steps.release.outputs.release_created == 'true' }} | ||
|
||
- name: Build | ||
run: pnpm build | ||
if: ${{ steps.release.outputs.release_created == 'true' }} | ||
|
||
- name: Test | ||
run: pnpm test | ||
if: ${{ steps.release.outputs.release_created == 'true' }} | ||
|
||
- name: Semantic 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' }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.