Skip to content

Commit

Permalink
Swap for changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Mar 25, 2023
1 parent ae21175 commit def7bb5
Show file tree
Hide file tree
Showing 7 changed files with 616 additions and 1,586 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "NullVoxPopuli/highlightjs-glimmer" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["hljs-glimmer-tests-cjs", "hljs-glimmer-tests-esm"]
}
21 changes: 21 additions & 0 deletions .changeset/selfish-books-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
"highlightjs-glimmer": patch
---

Fix issue where the `<template>` block in

```gjs
const demo = new Demo();
setTimeout(() => {
demo.theProperty = 2;
}, 500);
<template>
{{demo.theProperty}}
</tepmlate>
```

is unhighlighted.

Now it will be highlighted.
14 changes: 0 additions & 14 deletions .github/actions/pnpm/action.yml

This file was deleted.

44 changes: 13 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
schedule:
- cron: "0 3 * * 0" # every Sunday at 3am

concurrency: ${{ github.workflow }}-${{ github.ref }}

env:
CI: true

Expand All @@ -18,21 +20,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/pnpm
- uses: NullVoxPopuli/action-setup-pnpm@v1.1.0
- run: pnpm lint:js

commits:
name: Commit Messages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: volta-cli/action@v4
- uses: wagoid/commitlint-github-action@v5.3.1


esm_tests:
name: ESM Tests
timeout-minutes: 5
Expand All @@ -45,12 +35,7 @@ jobs:
- "18"
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/pnpm
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node}}
- run: pnpm install

- uses: NullVoxPopuli/action-setup-pnpm@v1.1.0
- name: Test Modules with ${{ matrix.node }}
run: pnpm test
working-directory: tests-esm
Expand All @@ -67,11 +52,7 @@ jobs:
- "18"
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/pnpm
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node}}
- run: pnpm install
- uses: NullVoxPopuli/action-setup-pnpm@v1.1.0
- name: Test CJS with ${{ matrix.node }}
run: pnpm test
working-directory: tests-cjs
Expand All @@ -86,19 +67,20 @@ jobs:
- uses: ./.github/actions/pnpm
- run: scripts/hljs-test.sh

publish:
release:
name: Release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
needs: [esm_tests, cjs_tests, hljs_tests]

steps:
- uses: actions/checkout@v3
- uses: NullVoxPopuli/action-setup-pnpm@v1.1.0
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
persist-credentials: false
- uses: ./.github/actions/pnpm
- name: Release
run: pnpm semantic-release
publish: pnpm release
title: "Release Preview"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27 changes: 9 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
}
},
"scripts": {
"release": "changeset publish",
"prepare": "node ./scripts/build.cjs",
"build": "node ./scripts/build.cjs",
"debug": "npx html-pages . --no-cache",
Expand All @@ -33,11 +34,9 @@
"@babel/node": "^7.20.2",
"@babel/plugin-transform-modules-commonjs": "^7.19.6",
"@babel/preset-env": "^7.20.2",
"@commitlint/cli": "^17.5.0",
"@commitlint/config-conventional": "^17.4.4",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.0",
"@nullvoxpopuli/eslint-configs": "^2.3.5",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"common-tags": "^1.8.2",
"esbuild": "^0.17.13",
"eslint": "^8.36.0",
Expand All @@ -52,27 +51,19 @@
"remark-html": "^15.0.2",
"remark-parse": "^10.0.1",
"remark-rehype": "^10.1.0",
"semantic-release": "^19.0.5",
"typescript": "^4.9.5",
"unified": "^10.1.1",
"vfile": "^5.3.7"
},
"peerDependencies": {
"highlight.js": ">= 11.0.0"
},
"release": {
"branches": [
"main",
"master"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git"
]
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"ember-cli-htmlbars"
]
}
},
"volta": {
"node": "18.15.0",
Expand Down
Loading

0 comments on commit def7bb5

Please sign in to comment.