fix: remove duplicate import checks, already checked by typescript #197
Workflow file for this run
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: test + publish | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- run: yarn | |
- run: yarn lint | |
publish-npm: | |
if: contains(github.ref, 'master') | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- run: yarn | |
- run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
publish-github-package: | |
if: contains(github.ref, 'master') | |
needs: publish-npm | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
registry-url: https://npm.pkg.github.com/ | |
token: ${{ secrets.GH_TOKEN }} | |
- run: | | |
git config --global user.name 'competec-mgw-bot' | |
git config --global user.email 'competec-mgw-bot@users.noreply.github.com' | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | |
git checkout "${GITHUB_REF:11}" | |
git pull | |
if [[ "$(git log -1 --pretty=%B)" =~ "chore(RELEASE):" ]]; then npm config set access public && npm publish --access public; fi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }} |