Skip to content

chore(release): 'publish v0.38.8' #123

chore(release): 'publish v0.38.8'

chore(release): 'publish v0.38.8' #123

name: CI for PR and Publish
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "20.x"
- run: yarn
- run: yarn run lint
- run: yarn run build
- run: yarn run test:coverage
# - run: yarn run upload:coverage
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Building Projects
working-directory: packages/teleport-test
run: yarn standalone
# - name: Building Wordpress Project
# env:
# CMS_URL: ${{ secrets.WORDPRESS_URL }}
# working-directory: packages/teleport-test/dist/teleport-project-wordpress-cms
# run: |
# yarn
# yarn build
# - name: Building Contentful Project
# env:
# CMS_URL: ${{ secrets.CONTENTFUL_URL }}
# CMS_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
# working-directory: packages/teleport-test/dist/teleport-project-contentful-cms
# run: |
# yarn
# yarn build
# - name: Building Strapi Porject
# env:
# CMS_URL: ${{ secrets.STRAPI_URL }}
# CMS_ACCESS_TOKEN: ${{ secrets.STRAPI_ACCESS_TOKEN }}
# working-directory: packages/teleport-test/dist/teleport-project-strapi-cms
# run: |
# yarn
# yarn build
# - name: Building Caisy Project
# env:
# CMS_URL: ${{ secrets.CAISY_URL }}
# CMS_ACCESS_TOKEN: ${{ secrets.CAISY_ACCESS_TOKEN }}
# working-directory: packages/teleport-test/dist/teleport-project-caisy-cms
# run: |
# yarn
# yarn build
# - name: Building Flotiq Project
# env:
# CMS_URL: ${{ secrets.FLOTIQ_URL }}
# CMS_ACCESS_TOKEN: ${{ secrets.FLOTIQ_ACCESS_TOKEN }}
# working-directory: packages/teleport-test/dist/teleport-project-flotiq-cms
# run: |
# yarn
# yarn build
- name: Authenticate with Registry
if: github.ref == 'refs/heads/development'
run: |
yarn logout
echo "@teleporthq:registry=https://registry.npmjs.org/" > .npmrc
echo "registry=https://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: .
- name: Publish to npm
if: github.ref == 'refs/heads/development'
run: yarn run publish --yes
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: .