fix: remove postinstall from cicd #7
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
########################################################## | |
# https://z4azz7gp65.map.azionedge.net/storybook-static/ # | |
########################################################## | |
name: Main publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: DEPLOY | prod | |
runs-on: self-hosted | |
container: | |
image: ubuntu:latest | |
steps: | |
- name: CHECKOUT | |
uses: actions/checkout@v3 | |
with: | |
repository: aziontech/azion-web-kit | |
ref: main | |
path: '.' | |
clean: true | |
fetch-depth: '0' | |
lfs: 'false' | |
- name: PRE INSTALL | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.6.1 | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@aziontech' | |
always-auth: true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_SECRET }} | |
- name: INSTALLING DEPENDENCIES | |
run: npm install | |
- name: BUILDING STORYBOOK | |
run: npm run build-storybook | |
- name: PREPARING TO DEPLOY | |
run: rm -rf vitest.config.js .storybook vite.config.js tailwind.config.cjs postcss.config.js pnpm-lock.yaml index.html CONTRIBUTING.md .prettierrc.json .eslintrc.cjs .nvmrc .github dist node_modules .editorconfig .gitignore docs primevue-sass-theme-3.40.1 LICENSE package-lock.json package.json post-install.sh README.md | |
- name: DEPLOYING STORYBOOK | |
uses: patrickwyler/[email protected] | |
with: | |
secrets: ${{ secrets.GCP_BUCKET_KEY }} | |
bucket: ${{ secrets.GCP_BUCKET_NAME }} |