Skip to content

MAJOR: Migrate from CommonJS to ES Module (#123) #15

MAJOR: Migrate from CommonJS to ES Module (#123)

MAJOR: Migrate from CommonJS to ES Module (#123) #15

Workflow file for this run

name: Node.js CI Deploy
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 20.x
- run: npm ci
- run: npm test
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: phips28/gh-action-bump-version@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
major-wording: "MAJOR:"
minor-wording: "MINOR:"
- uses: actions/setup-node@v2
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}