Skip to content

Commit

Permalink
Merge pull request #742 from storyblok/hotfix/release-process
Browse files Browse the repository at this point in the history
Adding `release.yml` file
  • Loading branch information
ademarCardoso authored Jan 11, 2024
2 parents d94a3a7 + fc9ff44 commit ca0afab
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Runing tests
env:
VITE_ACCESS_TOKEN: ${{ secrets.VITE_ACCESS_TOKEN }}
VITE_OAUTH_TOKEN: ${{ secrets.VITE_OAUTH_TOKEN }}
VITE_SPACE_ID: ${{ vars.VITE_SPACE_ID }}
run: yarn test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH }}
run: npx semantic-release

0 comments on commit ca0afab

Please sign in to comment.