Skip to content

Merge pull request #29 from jpbnetley/bugfix/deps #35

Merge pull request #29 from jpbnetley/bugfix/deps

Merge pull request #29 from jpbnetley/bugfix/deps #35

# This is a basic workflow to help you get started with Actions
name: Publish package to Github
on:
workflow_dispatch:
push:
branches:
- main
- staging
concurrency:
group: ${{ github.ref }}
jobs:
github-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
id: semantic
with:
branch: |
[
'main',
{
name: 'staging',
prerelease: true
}
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Display new tag version
if: steps.semantic.outputs.new_release_published == 'true'
run: |
echo New release: ${{ steps.semantic.outputs.new_release_version }}