Skip to content

Commit

Permalink
chore(ci): get rid of circleci and node v20 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
kptdobe authored Jan 18, 2024
1 parent 22f9332 commit 803d3b0
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 70 deletions.
47 changes: 0 additions & 47 deletions .circleci/config.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build
on: [push]

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run lint
- run: npm test

release:
name: Release
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
22 changes: 0 additions & 22 deletions .github/workflows/semantic-release.yaml

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"test:web": "web-test-runner test/browser/*.test.js --node-resolve",
"test:web:watch": "web-test-runner test/browser/*.test.js --node-resolve --watch",
"test": "c8 mocha && npm run test:web",
"test-ci": "c8 mocha && npm run test:web",
"semantic-release": "semantic-release",
"prepare": "npx husky install"
},
Expand Down

0 comments on commit 803d3b0

Please sign in to comment.