-
Notifications
You must be signed in to change notification settings - Fork 30
42 lines (34 loc) · 1.28 KB
/
publish-unstable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# For every push to the master branch, this publishes an NPM package to the
# "unstable" NPM tag.
name: Publish Unstable
on:
push:
branches:
- main
- master
jobs:
publish:
name: "NPM Publish"
if: "!contains(github.event.commits[0].message, 'dependabot')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
registry-url: 'https://registry.npmjs.org'
# - name: Install Dependencies
# run: yarn install --frozen-lockfile
# # We need a workspace aware version of npm because our addon is in a subdir but our .npmrc is in the root
# - name: npm8
# run: npm install -g npm@8
# - name: set version
# run: npm version --no-git-tag-version --workspaces-update=false `node -e "console.log(require('./package.json').version)"`-unstable.`git rev-parse --short HEAD`
# working-directory: ember-modifier
# - name: npm publish
# run: npm publish --tag=unstable --verbose --workspace=ember-modifier
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}