Skip to content

Commit

Permalink
ci: 'nightly' releases on pushes to main
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 6, 2023
1 parent 5be069d commit 3b3ade0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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
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

0 comments on commit 3b3ade0

Please sign in to comment.