Skip to content

Update install_dependencies.sh #34

Update install_dependencies.sh

Update install_dependencies.sh #34

Workflow file for this run

name: Node.js Package
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x' # Node.js 16이 더 이상 지원되지 않으므로 Node.js 20을 사용
- name: Install dependencies
run: npm install
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x' # Node.js 16이 더 이상 지원되지 않으므로 Node.js 20을 사용
registry-url: 'https://registry.npmjs.org/'
- name: Install dependencies
run: npm install
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.MY_NPM_KEY }}