feat: remove unnecessary dependencies #86dty6t9m (#7) #22
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: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: ππΌ Checkout | |
uses: actions/checkout@v2 | |
with: | |
# pulls all commits (needed for lerna / semantic release to correctly version) β see https://github.com/lerna/lerna/issues/2542 | |
fetch-depth: 0 | |
- name: π€ Git Bot Identity | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY | |
- name: π¦οΈ Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
scope: '@mifiel' | |
- name: π Install dependencies | |
run: yarn install | |
- name: π· Build packages | |
run: yarn build | |
- name: π Release New Version | |
run: yarn release:version --yes | |
- uses: actions/setup-node@v2 | |
with: | |
registry-url: https://npm.pkg.github.com | |
scope: '@mifiel' | |
- name: π¦ Publish to Github Packages | |
run: yarn release:publish from-package --no-verify-access --registry https://npm.pkg.github.com --yes | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-node@v2 | |
with: | |
registry-url: https://registry.npmjs.org | |
scope: '@mifiel' | |
- name: π¦ Publish to NPM | |
run: yarn release:publish from-package --no-verify-access --registry https://registry.npmjs.org --yes | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |