Skip to content

Update dependency jest to v29.6.2 (#179) #200

Update dependency jest to v29.6.2 (#179)

Update dependency jest to v29.6.2 (#179) #200

Workflow file for this run

name: npm-publish
on:
push:
branches:
- main
jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout repository
uses: actions/checkout@v3
- id: setup_node
name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- id: install_deps
name: Install Dependencies
run: npm i
- id: build
name: Build
run: npm run build
- id: do_tests
name: Unit Tests
run: npm test
- id: publish_npm
name: Publish to NPM Registry
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
- id: edit_name
name: Namespace Package Name
uses: deef0000dragon1/json-edit-action@v1
env:
KEY: name
VALUE: "@pandapip1/mineflayer-swarm"
FILE: package.json
- id: publish_gh
name: Publish to GitHub Registry
uses: JS-DevTools/npm-publish@v1
with:
registry: https://npm.pkg.github.com
token: ${{ secrets.GITHUB_TOKEN }}
- id: create_release
name: Create Release
if: steps.publish_npm.outputs.type != 'none' && steps.publish_gh.outputs.type != 'none'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.publish_npm.outputs.version }}
release_name: Release ${{ steps.publish_npm.outputs.version }}
body: ${{ steps.publish_npm.outputs.version }}
draft: false
prerelease: false