chore(deps): update dependency node to v22 (#873) #2567
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- name: Use Node.js | |
uses: actions/setup-node@v4.1.0 | |
with: | |
node-version-file: .nvmrc | |
- name: Use PNPM | |
uses: pnpm/action-setup@v4.0.0 | |
with: | |
version: 7 | |
- run: pnpm install | |
- run: pnpm run lint | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- name: Use Node.js | |
uses: actions/setup-node@v4.1.0 | |
with: | |
node-version-file: .nvmrc | |
- name: Use PNPM | |
uses: pnpm/action-setup@v4.0.0 | |
with: | |
version: 7 | |
- run: pnpm install | |
- run: pnpm run build | |
- run: pnpm run test:cypress | |
- run: pnpm run test:jest --coverage | |
env: | |
CI: true | |
- name: Upload coverage to Coveralls | |
uses: coverallsapp/github-action@v2.3.4 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: JS-DevTools/npm-publish@v3.1.1 | |
id: publish | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
package: ./package.json | |
tag: latest | |
access: public | |
dry-run: false | |
strategy: all | |
- name: Tag | |
if: github.ref_name == 'main' && steps.publish.outputs.type | |
uses: anothrNick/github-tag-action@1.71.0 | |
env: | |
CUSTOM_TAG: ${{ steps.publish.outputs.version }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Release | |
if: github.ref_name == 'main' && steps.publish.outputs.type | |
uses: softprops/action-gh-release@v2.0.8 | |
with: | |
tag_name: ${{ steps.publish.outputs.version }} | |
body: | |
'Changelog: https://github.com/iendeavor/vue-next-select/blob/${{ steps.publish.outputs.version | |
}}/CHANGELOG.md' |