Publish to npmjs #62
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 to npmjs | |
on: [workflow_dispatch] | |
env: | |
NODE_VERSION: 16 | |
WORKING_DIR: client | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | |
jobs: | |
publishing: | |
name: Publishing Package to npmjs | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{env.WORKING_DIR}} | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@v3 | |
- name: Install NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{env.NODE_VERSION}} | |
registry-url: "https://registry.npmjs.org" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Publish to npmjs | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{env.NPM_TOKEN}} |