Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
fix: test GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
einaralex committed Nov 8, 2023
1 parent 9c2defb commit cd94bdd
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release Please

on:
push:
branches:
- main
paths:
- "libs/sdk-react-provider/**"
permissions:
contents: write
pull-requests: write
jobs:
release-please:
name: "Create release"
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release

# The logic below handles the npm publication:
- uses: actions/checkout@v3
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- name: Yarn install
run: yarn install --immutable --immutable-cache
# for security reasons, use --check-cache if accepting PRs from third-parties.
if: ${{ steps.release.outputs.release_created }}
- name: Publish NPM package ${{ steps.release.outputs.tag_name }}
# run: yarn npm publish
run: yarn nx build sdk-react-provider
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
echo:
needs: [release-please]
runs-on: ubuntu-latest
steps:
- name: Debug
run: |
echo '${{ needs.release-please.outputs.release_created || false }}'
echo '${{ needs.release-please.outputs.tag_name }}'
5 changes: 5 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Initial Version
// The simplest way to tell release-please the current version for a package it has never released before is to manually add an entry into .release-please-manifest.json. This change should be made directly on the default/configured branch or on a separate, user-created branch/PR which is then merged into the default/configured branch.
{
"libs/sdk-react-provider": "0.0.3"
}
11 changes: 11 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"packages": {
"libs/sdk-react-provider": {
"releaseType": "node",
"package-name": "sdk-react-provider",
"pull-request-header": "Monerium SDK React Provider release :rocket:",
"changelog-types": "[{\"type\":\"feat\",\"section\":\"Features\",\"hidden\":false},{\"type\":\"fix\",\"section\":\"Bug Fixes\",\"hidden\":false},{\"type\":\"chore\",\"section\":\"Miscellaneous\",\"hidden\":false},{ \"type\": \"revert\", \"section\": \"Reverts\", \"hidden\": false }]",
"target-branch": "main"
}
}
}

0 comments on commit cd94bdd

Please sign in to comment.