Skip to content

Update package.json

Update package.json #2

name: Release djedi-json
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'packages/djedi-json/package.json'
jobs:
release:
name: Build and push npm release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Build package
working-directory: ./packages/djedi-json
run: npm run build
- name: Publish package
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./djedi-json/package.json