Skip to content

Publish

Publish #44

Workflow file for this run

name: Publish
on:
workflow_dispatch:
jobs:
publish:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
# Dependency node-sass will not install without Python 2; need to install.
- name: Install Python 2
run: |
curl -O https://www.python.org/ftp/python/2.7.18/python-2.7.18-macosx10.9.pkg
sudo installer -pkg python-2.7.18-macosx10.9.pkg -target /
echo 'export PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH"' >> $GITHUB_ENV
- run: npm install
- run: npx webpack --config ./webpack.config.npm.js
#- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}