Skip to content

Commit

Permalink
ci: 'nightly' releases on pushes to main (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Nov 6, 2023
1 parent 45d405e commit 89ffa77
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: ci

on:
push:
branches:
- main
- ci/release-nightly

permissions: {}

jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'nuxt' && github.event_name == 'push' }}
permissions:
id-token: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: 20
registry-url: "https://registry.npmjs.org/"
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: nightly release
run: pnpm changelogen --canary nightly --publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
Empty file added CHANGELOG.md
Empty file.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"lint:fix": "eslint --ext .vue,.ts,.js,.mjs . --fix",
"test:examples": "pnpm -r test",
"prepack": "unbuild",
"dev:prepare": "unbuild --stub"
"dev:prepare": "unbuild --stub",
"release": "pnpm test:examples && pnpm build && changelogen --release --push && pnpm publish"
},
"dependencies": {
"@nuxt/kit": "^3.8.1",
Expand All @@ -44,6 +45,7 @@
"devDependencies": {
"@jest/globals": "29.7.0",
"@nuxt/eslint-config": "^0.2.0",
"changelogen": "^0.5.5",
"eslint": "^8.53.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsdoc": "^46.8.2",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 89ffa77

Please sign in to comment.