Skip to content

github action test

github action test #9

name: Publish @next to NPM on dev branch merge
on:
push:
branches:
- main # Trigger on push to the dev branch, adjust as needed
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Git configuration
run: |
git config --global user.email "[email protected]"
git config --global user.name "patrickdeklein"
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Specify the Node.js version
registry-url: 'https://registry.npmjs.org/'
- name: Install dependencies
run: npm ci
- name: Publish
run: lerna publish --yes --message 'chore: release new versions'

Check failure on line 30 in .github/workflows/publish-next-NPM-dev-branch-merge copy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-next-NPM-dev-branch-merge copy.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Push repository changes
- name: Push changes to repository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git push origin && git push --tags