feat: add playground #263
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: Next release | |
on: | |
push: | |
branches: | |
- "main" | |
workflow_dispatch: | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
jobs: | |
build: | |
if: ${{ !contains(github.event.head_commit.message, 'chore(release):') }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: [21] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: corepack enable | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
cache: "pnpm" | |
node-version: ${{ matrix.node }} | |
registry-url: "https://registry.npmjs.org/" | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 3 | |
- name: Install dependencies | |
run: pnpm install | |
- run: pnpm dev:prepare | |
- name: Set git identity | |
run: | | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
- run: npm version prerelease --preid=dev | |
- name: Push | |
run: | | |
git remote set-url origin https://x-access-token:${{ github.token }}@github.com/${{ github.repository }} | |
git push -o ci.skip | |
- name: Publish Package | |
run: pnpm publish --tag next --access public --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: get-npm-version | |
id: package-version | |
uses: martinbeentjes/[email protected] | |
- name: Deploy notification | |
if: always() | |
uses: adamkdean/simple-slack-notify@master | |
with: | |
channel: "#deployments" | |
status: ${{ job.status }} | |
success_text: "Version (#${{ steps.package-version.outputs.current-version}}) von @lenne.tech/nuxt-base wurde erfolgreich released." | |
failure_text: "Release (#${{ steps.package-version.outputs.current-version}}) von @lenne.tech/nuxt-base ist fehlgeschlagen." | |
cancelled_text: "Release (#$${{ steps.package-version.outputs.current-version}}) von @lenne.tech/nuxt-base wurde abgebrochen." |