Skip to content

1.0.2

1.0.2 #1

Workflow file for this run

name: "Publish to npm 🚀"
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org/"
- name: Authenticate with npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Run tests
run: npm run test
- name: Build project
run: npm run build
- name: ESLint
working-directory: .
run: npm run lint
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}