Skip to content

chore: remove saml github token (#116) #85

chore: remove saml github token (#116)

chore: remove saml github token (#116) #85

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
build:
name: Build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- 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 [email protected]
git tag -a $VERSION -m "Version ${VERSION}"
git push origin $VERSION