Merge pull request #27 from AirWalk-Digital/upgrade #12
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 | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
run: npx ci | |
- name: Install semantic-release extra plugins | |
run: npm install --save-dev @semantic-release/changelog #@semantic-release/git | |
# - name: Lint | |
# run: npm run lint-fix | |
# - name: Test | |
# run: npm run test:unit --if-present | |
- name: Build | |
run: | |
npm config set "@fortawesome:registry" https://npm.fontawesome.com/ && \ | |
npm config set "//npm.fontawesome.com/:_authToken" $FONTAWESOME_NPM_AUTH_TOKEN && \ | |
npm run build-lib | |
env: | |
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }} | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} | |
run: npx semantic-release |