chore(bedrock): replacing BEDROCK_DEV with isTestEnvironment (#47) #6
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: bedrock-release | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- bedrock/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
sparse-checkout: bedrock | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
registry-url: https://registry.npmjs.org | |
- name: Install winglang | |
run: npm i -g winglang | |
- name: Install dependencies | |
run: npm install --include=dev | |
working-directory: bedrock | |
- name: Test | |
run: wing test | |
working-directory: bedrock | |
- name: Pack | |
run: wing pack | |
working-directory: bedrock | |
- name: Publish | |
run: npm publish --access=public --registry https://registry.npmjs.org --tag | |
latest *.tgz | |
working-directory: bedrock | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |