Skip to content

chore: chage the package version format (#117) #86

chore: chage the package version format (#117)

chore: chage the package version format (#117) #86

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
build:
name: Build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: ./.github/actions/prepare
- name: Build plugin
run: pnpm nx build nx-playwright
- name: Release
run: |
cd dist/packages/nx-playwright
echo "scope=@mands" > .npmrc
echo "@mands:registry=https://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
pnpm publish --access=public
VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g')
echo "Tagging version $VERSION"
git config user.name release-bot
git config user.email release-bot@mnscorp.net
git tag -a $VERSION -m "Version ${VERSION}"
git push origin $VERSION