diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..6a2ae3d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish + +on: + push: + tags: + - 'v*' + +permissions: + id-token: write + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Use Node.js + uses: actions/setup-node@v6 + with: + node-version: 24 + - run: npm ci + - run: npm test + - run: npm publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0e548db..39ad006 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,11 +11,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x, 22.x, 24.x] + node-version: [20, 22, 24] steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v6 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v6 with: node-version: ${{ matrix.node-version }} - run: npm ci diff --git a/package-lock.json b/package-lock.json index bda5896..770f410 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "serialize-javascript", - "version": "7.0.1", + "version": "7.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "serialize-javascript", - "version": "7.0.1", + "version": "7.0.2", "license": "BSD-3-Clause", "devDependencies": { "benchmark": "^2.1.4" diff --git a/package.json b/package.json index 2a2437c..87683b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serialize-javascript", - "version": "7.0.1", + "version": "7.0.2", "description": "Serialize JavaScript to a superset of JSON that includes regular expressions and functions.", "main": "index.js", "scripts": {