Skip to content

Merge pull request #45 from equinor/feature/using-sam #43

Merge pull request #45 from equinor/feature/using-sam

Merge pull request #45 from equinor/feature/using-sam #43

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: NPM Publish
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
jobs:
publish:
name: Publish to NPM
uses: ./.github/workflows/npm_publish.yaml
secrets:
npm-token: ${{ secrets.NPM_TOKEN }}
release:
needs: [publish]
name: Create release notes
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get npm version
id: package-version
uses: martinbeentjes/[email protected]
- name: Generate release notes
run: gh release create v${{steps.package-version.outputs.current-version}} --generate-notes --target ${{github.sha}}
env:
GH_TOKEN: ${{ github.token }}