Skip to content

Merge pull request #9 from evicio1/package-json-update #6

Merge pull request #9 from evicio1/package-json-update

Merge pull request #9 from evicio1/package-json-update #6

Workflow file for this run

name: Publish to npm
on:
push:
branches:
- master # Change this back to 'master'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org/'
- name: Run CI
run: npm ci
- name: Build the library
run: npm run build -- --project=country-selector-library
- name: Publish to npm
run: npm publish dist/country-selector-library
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}