Skip to content

New github actions workflow to publish to npm using semver #1

New github actions workflow to publish to npm using semver

New github actions workflow to publish to npm using semver #1

Workflow file for this run

name: Release
on:
push:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org/"
- run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Install semantic-release extra plugins
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
- run: yarn tsc
- run: yarn build
- name: Create .npmrc file
run: |
echo registry=https://registry.npmjs.org/ > .npmrc

Check failure on line 26 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

You have an error in your yaml syntax on line 26
echo '//npm.pkg.github.com/:_authToken=${{ secrets.GH_TOKEN }}' >> .npmrc
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release