Merge pull request #4 from kapetacom/releasses #1
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
name: Production Provider | |
on: | |
push: | |
branches: | |
- production | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Release Provider | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'write' | |
id-token: 'write' | |
issues: 'write' | |
pull-requests: 'write' | |
steps: | |
- uses: actions/checkout@v3 | |
id: checkout | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
id: setup-node | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Publish to Kapeta | |
id: kapeta-registry-push | |
uses: kapetacom/core-registry-action@v4 | |
with: | |
credentials: ${{ secrets.KAPETA_TOKEN }} | |
release_branch: production | |
action: publish | |
- name: slack - GitHub Actions Slack integration | |
uses: act10ns/slack@v2.0.0 | |
with: | |
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} | |
status: ${{ job.status }} | |
steps: ${{ toJson(steps) }} | |
channel: '#github-actions' |