ci: try something #292
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-release | |
on: | |
push: | |
branches: [master, alpha, beta] | |
workflow_dispatch: | |
jobs: | |
publish-release: | |
name: Running release | |
if: | |
"contains(toJSON(github.event.commits.*.message), 'chore(release):')" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
env: | |
CI: true | |
steps: | |
- name: 🛒 Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GH_TOKEN }} | |
- name: 🚀 Publish package to GitHub Packages | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
registry-url: 'https://npm.pkg.github.com' | |
# Defaults to the user or organization that owns the workflow file | |
scope: '@trixtateam' | |
- run: yarn | |
- run: yarn publish:libs | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: 🚀 Publish package to NPM Registry | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
registry-url: 'https://registry.npmjs.org' | |
# Defaults to the user or organization that owns the workflow file | |
scope: '@trixtateam' | |
- run: yarn | |
- run: yarn publish:libs | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |