🔧 build: Drop json files from distribution. (#2) #35
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: CI | |
on: [push, pull_request] | |
jobs: | |
execute: | |
runs-on: [self-hosted, Linux] | |
env: | |
INPUT_TOKEN: '' | |
steps: | |
- name: Set work folder permissions | |
run: pwd && sudo chown -R $USER:$USER ./ | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Build project | |
run: npm run build | |
- name: Publish to npm | |
uses: JS-DevTools/npm-publish@v1 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
token: ${{ secrets.NPM_AUTH_TOKEN }} | |
access: public |