Skip to content

chore: fix ci

chore: fix ci #5

Workflow file for this run

name: Publish to npm
on:
push:
branches:
- main
jobs:
release:
name: Publish
runs-on: ubuntu-latest
environment: rep
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/**
package.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}