Merge pull request #6 from camptocamp/add-ci #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish NPM package @dev version | |
# This workflow runs whenever a commit is pushed on main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-npm-package: | |
name: Publish NPM package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node & NPM | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install project dependencies | |
run: npm ci | |
- name: Publush canary version of packages | |
run: npx lerna publish --canary --force-publish --dist-tag dev --yes | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |