Skip to content

Merge pull request #2 from Brillionfi/mm-fix-branchname #1

Merge pull request #2 from Brillionfi/mm-fix-branchname

Merge pull request #2 from Brillionfi/mm-fix-branchname #1

name: NPM Publish alpha prerelease
on:
push:
branches:
- master
env:
NODE_VERSION: 20.12.2
jobs:
version-release-beta:
name: Publish alpha prerelease
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Yarn
run: npm install -g yarn
- name: Install Dependencies
run: yarn
- name: Build Package
run: yarn build
- name: Unit Tests
run: yarn test
- name: npm version prerelease
run: npm version prerelease --no-git-tag-version --preid=${GITHUB_SHA::7}
- name: Authenticate with npm registry
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish to NPM registry
run: npm publish --tag alpha --access public