Skip to content

Try fixing name to publish #5

Try fixing name to publish

Try fixing name to publish #5

Workflow file for this run

name: Build and Publish to NPM
on:
push:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'yarn'
registry-url: 'https://npm.pkg.github.com'
scope: '@saulshanabrook'
- run: yarn install
- run: yarn build
- run: yarn pack -f package.tgz
- run: npm publish package.tgz # --provenance --access public
env:
# Publish with github until I gain access to my npm account
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'yarn'
- run: yarn install
- run: yarn lint