diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 11b48ddc..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,79 +0,0 @@ -version: 2 - -refs: - container: &container - docker: - - image: circleci/node:16 - working_directory: ~/repo - -jobs: - all: - <<: *container - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "package.json" }} - - v1-dependencies- - - run: - name: Versions - command: node -v && npm -v && yarn -v - - run: - name: Install dependencies - command: yarn install - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ checksum "package.json" }} - - run: - name: Test - command: yarn test - - run: - name: Post to Slack - command: npx ci-scripts slack - - master: - <<: *container - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "package.json" }} - - v1-dependencies- - - run: - name: Versions - command: node -v && npm -v && yarn -v - - run: - name: Install dependencies - command: yarn install - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ checksum "package.json" }} - - run: - name: Test - command: yarn test - - run: - name: Post to Slack - command: npx ci-scripts slack - - run: - name: Release - command: npx semantic-release - -workflows: - version: 2 - all: - jobs: - - all: - context: common-env-vars - filters: - branches: - ignore: - - master - master: - jobs: - - master: - context: common-env-vars - filters: - branches: - only: master diff --git a/.github/workflows/nodejs.yml b/.github/workflows/checks.yml similarity index 92% rename from .github/workflows/nodejs.yml rename to .github/workflows/checks.yml index de6fd23f..5c97b4b0 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/checks.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - node-version: [12, 14] + node-version: [18] steps: - uses: actions/checkout@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..9c6abeba --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Node.js CI + +on: + push: + branches: [ master ] + +jobs: + unit: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: yarn + - run: yarn + - run: yarn test + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 71407e79..0da610b6 100644 --- a/package.json +++ b/package.json @@ -41,12 +41,12 @@ "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.15", "css-tree": "^1.1.2", - "csstype": "^3.0.6", + "csstype": "^3.1.2", "fastest-stable-stringify": "^2.0.2", - "inline-style-prefixer": "^6.0.0", - "rtl-css-js": "^1.14.0", + "inline-style-prefixer": "^7.0.0", + "rtl-css-js": "^1.16.1", "stacktrace-js": "^2.0.2", - "stylis": "^4.0.6" + "stylis": "^4.3.0" }, "devDependencies": { "@semantic-release/changelog": "5.0.1",