Try fixing name to publish #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |