Skip to content

Merge pull request #11 from klarna-incubator/release-please--branches… #6

Merge pull request #11 from klarna-incubator/release-please--branches…

Merge pull request #11 from klarna-incubator/release-please--branches… #6

Workflow file for this run

name: Release
on:
push:
branches: [ master ]
jobs:
release:
name: Release
runs-on: ubuntu-latest
outputs:
created: ${{ steps.release.outputs.release_created }}
steps:
- name: Release
uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: '@klarna/geofences-reducer'
publish:
name: Publish
needs: release
runs-on: ubuntu-latest
if: ${{ needs.release.outputs.created }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: npm ci
- name: Build
run: npm run build --if-present
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}