chore: Definfes -> defines (#21) #38
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: Release | |
on: | |
push: | |
branches: [main, beta] | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: 'package.json' | |
- name: Use deps cache | |
uses: actions/cache@v3 | |
id: yarn-cache | |
with: | |
path: ./.yarn/cache | |
key: deps-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
- name: Install deps | |
run: yarn install --immutable | |
- name: Build package | |
run: yarn workspace gatsby-plugin-eufemia-theme-handler build | |
- name: Set git config | |
run: | | |
git config --global user.name 'Tobias Høegh' | |
git config --global user.email 'tobias@tujo.no' | |
- name: Publish to NPM | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: yarn workspace gatsby-plugin-eufemia-theme-handler release |