diff --git a/.github/workflows/publish_npmjs.yaml b/.github/workflows/publish_npmjs.yaml new file mode 100644 index 0000000..264913c --- /dev/null +++ b/.github/workflows/publish_npmjs.yaml @@ -0,0 +1,25 @@ +# After new release is published on github, publish it to npmjs +name: Publish on npmjs + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 16 + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - uses: apexskier/github-release-commenter@v1 + with: + GITHUB_TOKEN: ${{ secrets.REPO_GHA_PAT }} + comment-template: | + Release {release_link} addresses this. diff --git a/.github/workflows/release_github.yaml b/.github/workflows/release_github.yaml new file mode 100644 index 0000000..df91146 --- /dev/null +++ b/.github/workflows/release_github.yaml @@ -0,0 +1,20 @@ +# On each new commit to master, create/update a PR with release +# automatically bumps version and creates changelog as per conventional commits +name: Release Github + +on: + push: + branches: + - master + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: GoogleCloudPlatform/release-please-action@v2 + id: release + with: + token: ${{ secrets.REPO_GHA_PAT }} + release-type: node + package-name: bee-factory + bump-minor-pre-major: true