Publish #41
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 | |
on: [workflow_dispatch] | |
jobs: | |
publish: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
- name: Install Node and NPM | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Cache dependencies | |
id: npm-cache | |
uses: actions/cache@v3 | |
with: | |
path: ./node_modules | |
key: npm-full-modules-${{ hashFiles('package-lock.json') }} | |
- name: Install dependencies | |
if: steps.npm-cache.outputs.cache-hit != 'true' | |
run: npm install --no-save | |
- name: Bump version | |
run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
npm version patch -m "bump package version" | |
git push | |
- name: Publish releases | |
env: | |
# These values are used for auto updates signing | |
APPLE_ID: ${{ secrets.APPLE_ID }} | |
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} | |
CSC_LINK: ${{ secrets.CSC_LINK }} | |
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | |
# This is used for uploading release assets to github | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
run: | | |
npm run publish |