diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 33d8450e..00000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Publish - -on: - push: - tags: - - '*' - branches-ignore: - - next - -jobs: - build: - runs-on: ubuntu-22.04 - timeout-minutes: 10 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: '20.x' - always-auth: true - registry-url: "https://npm.pkg.github.com" - scope: "@reedsy" - - name: Install - # Skip post-install to avoid malicious scripts stealing PAT - run: npm install --ignore-script - env: - # GITHUB_TOKEN can't access packages hosted in private repos, - # even within the same organisation - NODE_AUTH_TOKEN: ${{ secrets.REEDSY_BOT_PERSONAL_ACCESS_TOKEN }} - - name: Post-install - run: npm rebuild && npm run prepare --if-present - - name: Publish - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6bb09a86..9046aaf0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,10 @@ on: jobs: build: runs-on: ubuntu-22.04 + if: ${{ github.actor != 'dependabot[bot]' }} + timeout-minutes: 10 + steps: - name: Checkout uses: actions/checkout@v4 @@ -33,6 +36,6 @@ jobs: run: npm rebuild && npm run prepare --if-present - name: Test run: npm test - - name: Tag + - name: Release if: ${{ github.ref == 'refs/heads/main' }} - run: ./scripts/tag.sh + run: ./scripts/release.sh diff --git a/package-lock.json b/package-lock.json index 93fd0367..6fda7db4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@reedsy/vuejs-datepicker", - "version": "1.6.2-reedsy-2.1.2", + "version": "1.6.2-reedsy-2.1.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@reedsy/vuejs-datepicker", - "version": "1.6.2-reedsy-2.1.2", + "version": "1.6.2-reedsy-2.1.4", "license": "MIT", "devDependencies": { "@babel/cli": "^7.24.6", @@ -41,7 +41,7 @@ "parse5": "^7.1.2", "postcss": "^8.4.21", "pre-commit": "^1.2.2", - "stylus": "^0.59.0", + "stylus": "^0.63.0", "vite": "^5.2.12", "vue": "^3.4.27" }, @@ -11564,9 +11564,9 @@ "dev": true }, "node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", + "integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==", "dev": true }, "node_modules/saxes": { @@ -11956,15 +11956,15 @@ } }, "node_modules/stylus": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.59.0.tgz", - "integrity": "sha512-lQ9w/XIOH5ZHVNuNbWW8D822r+/wBSO/d6XvtyHLF7LW4KaCIDeVbvn5DF8fGCJAUCwVhVi/h6J0NUcnylUEjg==", + "version": "0.63.0", + "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.63.0.tgz", + "integrity": "sha512-OMlgrTCPzE/ibtRMoeLVhOY0RcNuNWh0rhAVqeKnk/QwcuUKQbnqhZ1kg2vzD8VU/6h3FoPTq4RJPHgLBvX6Bw==", "dev": true, "dependencies": { - "@adobe/css-tools": "^4.0.1", + "@adobe/css-tools": "~4.3.3", "debug": "^4.3.2", "glob": "^7.1.6", - "sax": "~1.2.4", + "sax": "~1.3.0", "source-map": "^0.7.3" }, "bin": { @@ -21197,9 +21197,9 @@ "dev": true }, "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", + "integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==", "dev": true }, "saxes": { @@ -21490,15 +21490,15 @@ "dev": true }, "stylus": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.59.0.tgz", - "integrity": "sha512-lQ9w/XIOH5ZHVNuNbWW8D822r+/wBSO/d6XvtyHLF7LW4KaCIDeVbvn5DF8fGCJAUCwVhVi/h6J0NUcnylUEjg==", + "version": "0.63.0", + "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.63.0.tgz", + "integrity": "sha512-OMlgrTCPzE/ibtRMoeLVhOY0RcNuNWh0rhAVqeKnk/QwcuUKQbnqhZ1kg2vzD8VU/6h3FoPTq4RJPHgLBvX6Bw==", "dev": true, "requires": { - "@adobe/css-tools": "^4.0.1", + "@adobe/css-tools": "~4.3.3", "debug": "^4.3.2", "glob": "^7.1.6", - "sax": "~1.2.4", + "sax": "~1.3.0", "source-map": "^0.7.3" }, "dependencies": { diff --git a/package.json b/package.json index dc98e063..610ff25a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reedsy/vuejs-datepicker", - "version": "1.6.2-reedsy-2.1.3", + "version": "1.6.2-reedsy-2.1.4", "description": "A simple Vue.js datepicker component. Supports disabling of dates, inline mode, translations", "keywords": [ "vue", @@ -65,7 +65,7 @@ "parse5": "^7.1.2", "postcss": "^8.4.21", "pre-commit": "^1.2.2", - "stylus": "^0.59.0", + "stylus": "^0.63.0", "vite": "^5.2.12", "vue": "^3.4.27" } diff --git a/scripts/tag.sh b/scripts/release.sh similarity index 97% rename from scripts/tag.sh rename to scripts/release.sh index 669c780f..fa2cd1f3 100755 --- a/scripts/tag.sh +++ b/scripts/release.sh @@ -24,3 +24,5 @@ git add --all lib/ git commit --message "Release version $VERSION" git tag $VERSION git push origin refs/tags/$VERSION + +npm publish diff --git a/src/components/DateInput.vue b/src/components/DateInput.vue index 6f8dccd3..29d53345 100644 --- a/src/components/DateInput.vue +++ b/src/components/DateInput.vue @@ -27,6 +27,7 @@ :placeholder="placeholder" :clear-button="clearButton" :disabled="disabled || null" + :aria-disabled="disabled || null" :required="required" :readonly="!typeable" autocomplete="off" diff --git a/src/components/Datepicker.vue b/src/components/Datepicker.vue index e99bfabd..02b03ccd 100644 --- a/src/components/Datepicker.vue +++ b/src/components/Datepicker.vue @@ -236,7 +236,7 @@ export default { emits: [ 'changedMonth', 'changedYear', - 'cleared', + 'cleared', 'closed', 'highlight-date', 'selected', diff --git a/src/components/DaysGrid.vue b/src/components/DaysGrid.vue index f931906b..4d943eee 100644 --- a/src/components/DaysGrid.vue +++ b/src/components/DaysGrid.vue @@ -1,7 +1,6 @@