Skip to content

fix: release.yml env and registry-url #10

fix: release.yml env and registry-url

fix: release.yml env and registry-url #10

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
node-version: [ 20.x ]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: node.js setup
uses: actions/setup-node@v3
with:
node-version: ${{ matrix['node-version'] }}
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: npm install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release