update deps #24
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: Build and Deploy package | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout Repository | |
uses: actions/checkout@main | |
- name: setup npm | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16.x" | |
registry-url: "https://registry.npmjs.org" | |
- name: ⬇️ Installing dependencies | |
run: npm i | |
- name: 🧐 Testing package | |
run: npm run test | |
- name: 📦 deploy to npm | |
run: | | |
npm run build | |
npm ci | |
npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |