Skip to content

Commit

Permalink
ci: release package to nightly channel
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 21, 2024
1 parent 1c2ff7a commit cb826b5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,3 @@ jobs:
- run: pnpm test:types
- run: pnpm dev:build
- uses: codecov/codecov-action@v4

release:
runs-on: ubuntu-latest
needs: ci
if: false && github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip-release]')
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm dev:prepare
- run: pnpm build
- name: Release Edge
if: |
github.event_name == 'push' &&
!contains(github.event.head_commit.message, '[skip-release]')
run: ./scripts/release-edge.sh
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
NPM_CONFIG_PROVENANCE: true
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: release

on:
push:
branches:
- main

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
- run: corepack enable
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
registry-url: "https://registry.npmjs.org/"
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Prepare build environment
run: pnpm dev:prepare

- 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 cb826b5

Please sign in to comment.