This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
Merge pull request #44 from iFixit/dependabot/npm_and_yarn/axios-1.6.0 #55
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: NPM Build and Publish | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm install and build | |
run: | | |
npm ci | |
npm run svgr | |
npm run generate-entrypoints | |
npm run build | |
- name: npm publish | |
if: github.ref == 'refs/heads/master' | |
run: | | |
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN | |
npm publish --access public | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |