Skip to content

v1.1.0

v1.1.0 #2

Workflow file for this run

name: Publish Package
on:
workflow_dispatch:
release:
types: [created]
jobs:
publish_npmjs:
name: Publish Package to npmjs
runs-on: ubuntu-latest
if: github.repository_owner == 'TruckersMP'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Node v20
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
registry-url: https://registry.npmjs.org
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}