Skip to content

chore: fix ci

chore: fix ci #6

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: Get version of the project
id: project-version
uses: 'euberdeveloper/ga-project-version@main'
- name: Add release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.project-version.outputs.version }}"
title: "Deploy"
files: |
package.json