Skip to content

Commit

Permalink
reverting the ci changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeManSu committed Dec 21, 2024
1 parent 42ae238 commit 3fe2635
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI
on:
pull_request_target:
pull_request:
push:
branches:
- master
Expand All @@ -11,38 +11,34 @@ jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref || github.ref }}

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
registry-url: https://registry.npmjs.org

- name: Install Dependencies
- name: Installing Dependencies
run: npm i

- name: Lint Code
- name: Lint
run: npm run lint

- name: Build Project
- name: Build
run: npm run build

- name: Setup Environment Variables
- name: Run Tests
run: |
touch .env
echo "METACALL_AUTH_EMAIL=${{ secrets.METACALL_AUTH_EMAIL }}" >> .env
echo "METACALL_AUTH_PASSWORD=${{ secrets.METACALL_AUTH_PASSWORD }}" >> .env
- name: Run Tests
run: npm run coverage
echo 'METACALL_AUTH_EMAIL="${{ secrets.METACALL_AUTH_EMAIL }}"' >> .env
echo 'METACALL_AUTH_PASSWORD="${{ secrets.METACALL_AUTH_PASSWORD }}"' >> .env
npm run coverage
- name: Publish to NPM
- name: Publish
uses: JS-DevTools/npm-publish@v1
if: startsWith(github.ref, 'refs/tags/')
with:
access: 'public'
token: ${{ secrets.NPM_AUTH_TOKEN }}
token: '${{ secrets.NPM_AUTH_TOKEN }}'

0 comments on commit 3fe2635

Please sign in to comment.